1
RiazShahid
Combining Block Templates

Hi All,
Different article modules (e.g. Publisher or SmartSection) offer block templates like random item, recent item, Latest Upload, In the Spotlight etc. Similarly other modules have their own blocks. Is there a way I can combine different blocks and make a single block. I checked in the Edit Template option, but code looks like same in different files, only html file name is different. For example, random item has this code

<{$block.content}>
<br />
<br />

<div align="right">
<a href='<{$block.url}>'><{$block.lang_fullitem}></a>
</div>
Even I have another hack of the similar module install, code is same there, so how can I combine?

2
RiazShahid
Re: Combining Block Templates

Nobody here to check this issue?

3
Tarik
Re: Combining Block Templates
  • 2011/2/20 16:50

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


you have maybe two choices
1 is to use the hack block anywhere then combine the blocks you want(not sure)
2 is to hack the module and make an extra block but this need some modifications on the Php scale not on HTML only
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

4
RiazShahid
Re: Combining Block Templates

I dont think hacking a module or a block is the right way. As far as I have seen, template files are in HTML, but codes are nearly same, the problem is, if I want to merge these html codes, how it will be differentiated.

5
Tarik
Re: Combining Block Templates
  • 2011/2/20 18:33

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


you cant merge two blocks by simply combining there html codes you must also some modifications on php side.
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

Login

Who's Online

178 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

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

Latest GitHub Commits