need clarification on content blocks

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
turpentyne
Forum Members
Forum Members
Posts: 34
Joined: Tue Oct 08, 2013 8:29 pm

need clarification on content blocks

Post by turpentyne »

I'm trying to solve a couple problems, and ran into something I'm not understanding. Forgive me, if I'm just being dense.

I know there's the basic required {content} tag
And I know the tag, {global_content}

But that leaves me with a third option, I'm not understanding how to set up - or if it's something different: the ability to use the {content tag by adding "block" - like this:

{content block="Sidebar"}

Where do I designate this new content block category, or assign pages to it? Or is this just referring to global_content?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: need clarification on content blocks

Post by calguy1000 »

You put the additional content blocks in your page template.
Then you assign pages to use that page template.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
turpentyne
Forum Members
Forum Members
Posts: 34
Joined: Tue Oct 08, 2013 8:29 pm

Re: need clarification on content blocks

Post by turpentyne »

ahhh! ok.. got it figured out.

Out of curiosity, is there a simple way to have content within that extra content block only appear if they're within certain menu sections of the site? Or will it cause problems with that content block?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: need clarification on content blocks

Post by calguy1000 »

for that, you need logic inside the page template. and probably a third party module (CGSimpleSmarty).

logic something like (paraphrasing)
{if this_page_is_child_of('somesection') or page_alias is 'somesection')}
{content block='otherblock'}
{/if}

Note: the edit area for 'otherblock' will appear in the edit content form of all content pages using that template. regardless of whether they pass the above test or not.... However, on frontend display the test will be used.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”