1
technobia
Custom Block Administration Titles
  • 2007/1/8 15:57

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


I hope I am posting in the correct place. If not, my apologies.

It is my understanding there is a code snippet somewhere in this site that can be added to the theme block html files that will allow for you to enter Custom Block (HTML) titles that do not show up on the web page but DO show up only in the Block Administration pages.

I use a lot of custom blocks on my site and I need to edit them often. I find it very time consuming and confusing locating the correct block to edit. It would be VERY helpful if I could have a title in the administration section only.

Thanks
Thanks, Technobia
http://www.PrideDEPOT.com
Everybody Has A Right!

2
WarDick
Re: Custom Block Administration Titles
  • 2007/1/25 8:28

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Find this expression in your theme.

<divĀ class="blockTitle"><{$block.title}>div>

Add the if statement below.
Quote:
<{if $block.title|regex_replace:"/.*none/":"none" ne "none"}>
<{$block.title}>

<{/if}>[/quote}

Insert this code in the left block loop for instance.
Simply name the block as block_name none.

Add loop to each block loop you want to have control over.

That's it.


On the admin side the block_name none shows.
On the user side no block_name is shown.

I have been using this for years on a production site. It works!
Urging XOOPS to be the Best It Can Be.
Richard......

Login

Who's Online

274 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits