Page 1 of 1

Front End Users and Content blocks

Posted: Thu Jul 01, 2010 5:23 pm
by njprrogers
Hi,

I've created a site and launched. The client has come back to me and asked me to introduce FEU. I wish to place the login into a global content block which is in a header on the site. This appears on every page.

The site is large enough with several templates, all of which have multiple content blocks per template e.g. left column, middle column, right column.

When I introduce FEU it will not work on the pages with {content block="foo"}... I've tested it and it only seems to work if there is a block with just {content}.

Is there a way around this?

Thanks,

Nick

Re: Front End Users and Content blocks

Posted: Thu Jul 01, 2010 9:38 pm
by jmcgin51
that is correct.  Many modules (not just FEU) depend on the presence of the default {content} block.

Re: Front End Users and Content blocks

Posted: Fri Jul 02, 2010 9:50 am
by njprrogers
Hmmm. Not great news!

I've updated cms_content_props with some SQL and copied the contents of a couple of named content blocks in to content_en and added the FEU code. Saved me a lot of typing.

Thanks.

Re: Front End Users and Content blocks

Posted: Fri Jul 02, 2010 10:15 am
by owr_bgld
njprrogers wrote: This appears on every page.
In this case, the best way. like you wrote is to use a GLOBAL CONTENT BLOCK (GCB)

If you need it - in this GCB you can put the html-code like:

Code: Select all

<!--  CustomContent  -->
      {* User eingeloggt? *}
      {if $ccuser->loggedin() > 0}
  <!-- Text or code if logged in -->
       SOME TEXT OR CODE HERE .....
  <!-- End Text or code if logged in -->
      {else}
       MAYBE SOME TEXT .....
       {cms_module module=FrontEndUsers form='login'}
     {/if}
<!-- ============================================================== -->
But the "more important" - did you ever try the "AdvancedContent" Module?


EDIT:

Maybe you can use a "trick" - if you have only content_en - you can capture the "content"-Block

{capture assign="NAMEofVARIABLE"}{content}{/capture}