thanks again for the assistance it didn't work at first, I pasted that snippet on the template the "intergated-marketing.php" however got same output front end page with no text and content displaying on it.
However then I reverted the title of the page from the backend and the content reappeared, now I got one very important question here, how can I change the title of the page and related content from the back end (which seem to me the very purpose of having a cms) without causing mayhem in front end?
I mean every time I change a title in the back end I'm going to lose the content on the front end page?
How can I prevent/avoid that?
As for the other matters, yes I did delete the commented parts when posting the page here.
However the url of the page is been posted in my first post therefore it seemed weird you asked me for it again.
However then I reverted the title of the page from the backend and the content reappeared, now I got one very important question here, how can I change the title of the page and related content from the back end (which seem to me the very purpose of having a cms) without causing mayhem in front end?
I mean every time I change a title in the back end I'm going to lose the content on the front end page?
How can I prevent/avoid that?
As for the other matters, yes I did delete the commented parts when posting the page here.
However the url of the page is been posted in my first post therefore it seemed weird you asked me for it again.
KK wrote:Actually I did try doing that. The 'title' of cms:template in the code suggested that the code belonged to the 'integrated-marketing.php' but when I accessed that template the HTML output I saw did not match the code you had originally posted (which is explained by your second post - you had posted an 'edited' version of the template).but sorry can't you see it yourself?? by navigating to the page?
don't get you honestly
Also in case you missed seeing it, I requested you to get me the URL of the template so that I could see it myself -As an alternative, just get me the URL to the template you posted and I'll take a look at it myself.
That said, I think you must understand one fact (and it seems that you have got it wrong) - none of us here on the forum are under any kind of obligation to go check and rectify mistakes in your coding. We do that in the spirit of trying to help others and you absolutely must appreciate that. I'm forced to remind you of this because the kind of tenor your posts carry suggest otherwise.
Coming to the problem at hand -
taking a look at the generated HTML and comparing it with the template code, I can see that the following block of code (it is used twice on the template) is coming out blank
- Code: Select all
<cms:pages masterpage='integrated-marketing.php' page_name='ideas-that-transform-brands'>
...
</cms:pages>
This suggests that either the name of the template is not right or the page named 'ideas-that-transform-brands' does not exist or is inaccessible. Since we can be sure that the name of the template is right, you'll have to check the page.
To debug this, place the following code anywhere in the template (just for testing) -
- Code: Select all
<cms:pages masterpage='integrated-marketing.php' page_name='ideas-that-transform-brands'>
<h1>Page found <cms:show k_page_name /></h1>
<cms:no_results>
<h1>Page not found!</h1>
</cms:no_results>
</cms:pages>
If you get 'not found', try finding out the right page name and putting it there.
Hope this helps.