Sorry for what I think is going to be a dumb question - I'd like to be able to have a client manage content via Admin > Website > Webpages and have that content populate in my Checkout.Master page. This will be used to update shipping information from time to time that is currently hard-coded into the master page. What is the proper syntax for calling in webpage content from master pages (and/or .aspx pages)?
Thanks!
Calling Webpage Content from Master Page
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Calling Webpage Content from Master Page
Here is a sample of how I do it:
Newer versions of Gold do it in the ConLib/CustomHTML like the following. You pass a parameter WebPageId when you call the conlib
Code: Select all
Webpage storage = WebpageDataSource.Load(_Filter1Webpage);
if (storage != null)
{
_Filter1OrderStatusIds = storage.Summary.Trim();
}
Code: Select all
if (_WebPageId > 0) _Webpage = WebpageDataSource.Load(_WebPageId);
if (_Webpage != null && !string.IsNullOrEmpty(_Webpage.Description))
{
CustomHTMLPanel.Controls.Clear();
CustomHTMLPanel.Controls.Add(new LiteralControl(_Webpage.Description));
}
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
Re: Calling Webpage Content from Master Page
Hi Judy -
Thanks for your help, worked like a charm!
Greg
Thanks for your help, worked like a charm!
Greg