1
tatane
Place a block at a specific location
  • 2009/6/2 9:07

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello

Currently when we want to display the block on a module is required to view all pages of a module

Example: I want to block the "research" on / module/Catads/index.php and not the entire module Catads

How?

Thank you

2
demian
Re: Place a block at a specific location
  • 2009/6/2 12:24

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


search for the index template of catads in modules/catads/templates/

and use the block plugin by the legendary trabis

http://www.xuups.com/modules/publisher/item.php?itemid=10

3
tatane
Re: Place a block at a specific location
  • 2009/6/2 14:07

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Excuse me for my bad English, but there is one thing I did not understand.
In the folder where is there <{block id=1}> ?

4
ghia
Re: Place a block at a specific location
  • 2009/6/2 21:26

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


<{block id=1}> is a smarty tag you can place everywhere in templates and it will be replaced by the content of the block identified by its number (in this example 1).
I this way you can show everywhere you put this tag the content of the block.

5
tatane
Re: Place a block at a specific location
  • 2009/6/3 6:50

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


super thank you very much but can we save more <(block id =)> in function.block.php?

6
ghia
Re: Place a block at a specific location
  • 2009/6/3 7:32

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The tags (as many as you want) are to be placed in template files. These are usually .html files located in the template or in the theme directory.
The hack will replace the tags with the content of the selected block.

Login

Who's Online

276 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 276


more...

Donat-O-Meter

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

Latest GitHub Commits