Front End Users and Content blocks

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
njprrogers
Forum Members
Forum Members
Posts: 30
Joined: Fri Oct 31, 2008 12:51 pm

Front End Users and Content blocks

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Front End Users and Content blocks

Post by jmcgin51 »

that is correct.  Many modules (not just FEU) depend on the presence of the default {content} block.
njprrogers
Forum Members
Forum Members
Posts: 30
Joined: Fri Oct 31, 2008 12:51 pm

Re: Front End Users and Content blocks

Post 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.
owr_bgld

Re: Front End Users and Content blocks

Post 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}
Last edited by owr_bgld on Fri Jul 02, 2010 10:21 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”