Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.0 Hint''s and Tips
 Add on the fly edit button on content page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

apswater
VP-CART Super User

444 Posts

Posted - June 09 2017 :  13:50:07  Show Profile  Visit apswater's Homepage  Reply with Quote
Here is another handy upgrade. Why go to the admin screen to find your content page and edit it? Add an edit button to the content page when you are logged in as admin.

Open shopcontent.asp

Around line 178 find :

''800 - 2015.08.10 - Enahncement: To have global template specified for content pages
if Template = "" then
Template = getconfig("xcontent_templates")
end if

Change it to

''800 - 2015.08.10 - Enahncement: To have global template specified for content pages
if Template = "" then
Template = getconfig("xcontent_templates")

if session("shopadmin") <>"" then template="tmp_content-admin.htm"

end if

Copy tmp_content.htm to tmp_content_admin.htm

Find in the new tmp_content_admin.htm :

[ADD_PAGEHEADER]
<div class="breadcrumb">
[formatbreadcrumb_content]
</div>
<div class="page_content">

and change to

[ADD_PAGEHEADER]
<div class="breadcrumb">
[formatbreadcrumb_content]
</div>
<a href=/(Your Admin Directory)/shopa_editcontent.asp?page=1&which=[contentid]&IDField=contentid&table=content&Database=>Edit</a><br />
<div class="page_content">

Now you have edit on the fly.

Edited by - apswater on June 09 2017 13:52:17

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - June 12 2017 :  15:27:26  Show Profile  Visit serjtankian's Homepage  Reply with Quote
another great mod from you!

thanks!



*peace - serj*
Go to Top of Page

sancess
Starting Member

37 Posts

Posted - June 19 2017 :  13:26:01  Show Profile  Reply with Quote
this is really good!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00