Hallo,
Ik heb wat hulp nodig met het volgende probleem: in CMS Made Simple is het naar mijn weten niet simpel mogelijk om op elke pagina een andere afbeelding in een kolom te plaatsen. Daarom had ik het volgende bedacht:
Ik plaats een Smarty Tag in de template. Dit wordt dan vervangen door de link naar het plaatje dat moet worden getoond. Nu heb ik dit gevonden:
Wie kan mij helpen?
Ik heb wat hulp nodig met het volgende probleem: in CMS Made Simple is het naar mijn weten niet simpel mogelijk om op elke pagina een andere afbeelding in een kolom te plaatsen. Daarom had ik het volgende bedacht:
Ik plaats een Smarty Tag in de template. Dit wordt dan vervangen door de link naar het plaatje dat moet worden getoond. Nu heb ik dit gevonden:
Ik had het idee dat ik dit wel kon verbouwen naar een klein scriptje dat de een tag vervangt door een afbeelding. Dat is mij niet gelukt. Ik weet niets van PHP, ik ken en kan alleen maar html en css.Hide News SideBar on News Page
The last little thing I wanted to do was to hide the news content in the sidebar when I was viewing the news page. I didn't think the same data needed to be listed twice.
This was actually a complication in 1.4 from previous versions of CMS Made Simple. In previous verious you could just add an {assign} statement into the metadata area on the options tab of the edit content page for the particular page you wanted to edit. However, since 1.4 processes the <head> section after the <body> section this solution wasn't going to work.
In 1.4 there is now a new text area on the options tab entitled "Smarty data or logic that is specific to this page". I placed {assign var='hide_news' value='1'} into this textarea when editing the News and hit submit.
I then modified the page template in two ways. Firstly, I added {process_pagedata} to the very top of my page template (directly above the doctype tags). I then changed the area where news was called in the sidebar to this:
{if !isset($hide_news)}
<!-- Start News --><div>
{news number='3' detailpage='news'}
</div> <!-- End News -->
{/if}
After hitting submit, then reloading the News page, the news sidebar was gone. Excellent.
Wie kan mij helpen?