Alternatives to the tag_edit and tag_delete Web App tags

Learn an alternative way to include web app edit and delete tags that will allow you to change the link text and have better overall control of the HTML

July 12, 2012 - Posted by Carol Lemke to Technical How-tos
0 Favorites

Business Catalyst provides tags that allow visitors logged into a secure zone to edit or delete a web app item. Depending on how the web app is set up, users can edit all web app items or just be allowed to edit their own submissions. Users are only allowed to delete their own submissions. If users try to delete an entry that was created by someone else, they will get re-directed to an error screen that says, "ERROR: You cannot edit an item that was not submitted by you in the first place."

The tag you would insert to edit is {tag_edit} and this will output an <a> link that surrounds the text, "Edit".

The tag you would insert to delete is {tag_delete} and this will output an <a> link that surrounds text, "Delete".

Alternative output for Edit

This allows you to edit the HTML of the tag or change the link text from "Edit" to something else.

Alternative output for Delete

This allows you to edit the HTML of the tag or change the link text from "Delete" to something else.

Add Alert to Delete

As I said before, users are only allowed to delete their own submissions. However, the user may not be aware of such an issue so it may be nice to include an "onclick" event on the delete link as a way to alert the user of this issue before they get automatically re-directed to the error page.

Save to your favorites

0 Thumbs Up So Far

Become a FREE Member

Start saving your favorite posts and also get instant access to other great resources for Business Catalyst partners!

Get Started
+ Contribute

FREE Account ×

Create your account






I agree to the Terms and Privacy. We don't like spam either, and will NEVER rent, sell or share your information with anyone