1
sarahmx
Help with Publisher Blocks
  • 2010/6/15 15:28

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


I would like to display my block like this

this site from Yaxs
http://www.maltasport.com/

recent item with images and a summary for all/x articles

i used the column blocks...normal template

right now only the first article is shown with images/summary and the rest article only the title


here's the template for the column blocks
<{if $block.template == 'normal'}>
<
div style="width:100%;">
<{
section name=i loop=$block.columns}>
    <
div style="width: <{$block.columnwidth}>%;" class="info-left">
      <{foreach 
item=item from=$block.columns[i]}>
      <
div class="info-box">
        <
div class="info-section info-clearfix">
          <
a href="<{$item.categoryurl}>" title="<{$item.item_cat_description}>"><span><{$item.item_cat_name}></span></a>
        </
div>
        <
div class="info-content clearfix">
          <{if 
$item.item_image != ''}>
            <
img src="<{$item.item_image}>" alt="<{$item.item_cleantitle}>" align="left" width="120" />
          <{/if}>
          <
h4 class="info-title"><a href="<{$item.itemurl}>" title="<{$item.item_cleantitle}>"><{$item.item_title}></a></h4>
          <
p><{$item.item_summary}></p>
        </
div>

        <{if 
$item.subitem}>
        <
strong class="info-more"><{$smarty.const._MB_INFO_MORE}></strong>
        <
ul class="info-links">
        <{foreach 
item=subitem from=$item.subitem}>
          <
li>
            <
a title="<{$subitem.title}>" href="<{$subitem.itemurl}>">
            <{
$subitem.title}></a>
          </
li>
        <{/foreach}>
        </
ul>
        <{/if}>
      </
div>
      <{/foreach}>
   </
div>
<{/
section}>
</
div>
<{/if}>
<{if 
$block.template == 'extended'}>
<
div style="width:100%;">
<{
section name=i loop=$block.columns}>
    <
div style="width: <{$block.columnwidth}>%;" class="info-left">
      <{foreach 
item=item from=$block.columns[i]}>
      <
div class="info-box">

          <
h3 class="info-title"><a href="<{$item.itemurl}>" title="<{$item.item_title}>"><{$item.item_title}></a></h3>

      <
div style="float:right; width:60%">

        <
div class="info-content clearfix">
          <{if 
$item.item_image != ''}>
            <
img src="<{$item.item_image}>" alt="<{$item.item_summary}>" align="right" width="200" height="200" />
          <{/if}>
          <
p><{$item.item_summary}></p>
          <
p><a href="<{$item.itemurl}>" title="<{$item.item_title}>"><{$smarty.const._MB_INFO_READMORE}></a></p>
        </
div>
        
      </
div>

        <{if 
$item.subitem}>
    <
div style="float:left; width:40%;">
        <
br />
        <
strong class="info-more"><{$smarty.const._MB_INFO_MORE}></strong>
        <
br />
        <
ul class="info-links">
        <{foreach 
item=subitem from=$item.subitem}>
          <
li>
            <
a title="<{$subitem.summary}>" href="<{$subitem.itemurl}>">
            <{
$subitem.title}></a>
          </
li>
        <{/foreach}>
        </
ul>

    </
div>
        <{/if}>
     </
div>

      <{/foreach}>
   </
div>
<{/
section}>
</
div>
<{/if}>


help...TQ

2
underdog
Re: Help with Publisher Blocks
  • 2010/6/15 19:48

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


Can you tell the data that you have assigned to the template.
put the print_r of the data between < pre > tags (no spaces) and put it in a [ code ] block please

3
mariane
Re: Help with Publisher Blocks
  • 2010/6/15 20:08

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


no need to do all these changes, just go to the block : latest news in the plublisher and set up these settings for example :
Display Articles : 8
Number of Columns : 2

in this cas the latest news block will show latest 8 articles/news added in the website in 2 columns

try it
the road of success is always under construction

4
sarahmx
Re: Help with Publisher Blocks
  • 2010/6/15 22:45

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Thank you marianne and underdog

use the latest news block..solved it

Publisher is the best module in the world...Lol

5
oswaldo
Re: Help with Publisher Blocks
  • 2010/6/16 1:58

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


Hello Mariane

I saw publisher instaled in your site,
would you please tellme how to create categories, because when I test it I I could not make it.

6
mariane
Re: Help with Publisher Blocks
  • 2010/6/16 7:17

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


Sarahmax, nice to hear that your problem is solved . me too, I consider publisher the best module, also it can be a framework in the future to building other xoops modules.

regarding how to create categories in publisher :
- go to modules/publisher/admin/index.php
- choose : create category and give your category a title then click on create button.
- you have now to give permissions to this category : permissions to view, to submit...etc
- go to permissions page : modules/publisher/admin/permissions.php
and set permisssions.

in publisher, you can see new features :
- Fields available in articles submission forms : You can select which optionable fields will be present in articles submission forms
- Editors available in articles submission forms : You can your favorite editors to be present in articles submission forms
- Global permission settings : it's only for search and rates.

once you create a category and you set permissions, you can create articles, in publisher there is a special way to upload images with articles. if you set : Enable images feature, in the permissions, you will see in article's submission form a tab called images, click on it and upload your image from there, the image will get an automatic lightbox effect in the article.

I hope I can make an extended tutorial in PDF to this module, but we are waiting to be launched officialy
the road of success is always under construction

7
oswaldo
Re: Help with Publisher Blocks
  • 2010/6/18 2:59

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


Hi Marianne

Thanks for explain, I understand all, how to create a categorie in publisher, the problem is that the form to fill the name and the rest of category is missing (see image).

Can you helpme and giveme another copy of the module?

I download it from the repository
Resized Image


8
mariane
Re: Help with Publisher Blocks
  • 2010/6/18 6:30

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


maybe you don't have PHP5 or XOOPS 2.30 at least ?
the road of success is always under construction

9
bjuti
Re: Help with Publisher Blocks
  • 2010/6/18 10:51

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Possible problem is using default admin theme. Try other gui.

10
oswaldo
Re: Help with Publisher Blocks
  • 2010/6/18 13:24

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


Thanks All this is my system info:

Versión XOOPS - XOOPS 2.4.4
Versión PHP - 5.3.1
Versión MySQL - 5.1.41
Versión Server API - apache2handler
Versión OS - WINNT

I try whit these admin themes: default, exm, legacy & oxygen.

Please helpme, I hear that this module is very good

If you can giveme a link to download a working copy of the module.
I will be grateful

Login

Who's Online

257 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

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

Latest GitHub Commits