Re: Slots at the bottom
Irma Merino <[email protected]> Sun, 27 Feb 2005 14:14:52 +0100
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Message-ID | <[email protected]> |
Hi Rob,
I asked the same question in the mailing list
"gmane.comp.web.zope.plone.user" and that is the answer that I received:
Irma. :D
Hi Irma,
in this case the solution would be to build a new slot container for the
bottom of your page so that you can add two portlets into it.
You would have to customize the several files of Plone, because the
standard setup only provides the left, the right, and a document_actions
slot container. So you need to add your own one in analogy to the
others, e.g. 'bottom_slots'.
In order to achieve this, you currently need to edit:
* plone_templates/main_template.pt
* plone_templates/portlets_fetcher.pt
* plone_scripts/prepare_slots.py
* plone_styles/ploneCustom.css
In each file you need to add your additional slot container. That can
mostly be achieved by copying and adjusting the code of one of the other
ones.
To have the slots appear in a row on the page as opposed to a column,
you will have to add
#portal-row-bottom .portlet {
float: left;
}
That is, if you've given the surrounding <div> an id of
'portal-row-bottom' in the main_template.
When you're done, you only need to add a field in the folder where you
want your portlets to be displayed. For example, go to your portal root,
click the 'Properties' tab and add a property:
Name: bottom_slots
Type: lines
Value:
After that, you can just add your portlets to this field like you do it
with left_slots and right_slots.
Hope that helps,
andré>
Irma Merino wrote:
> Hi André,
>
> that I want is to create 2 new dynamic slots at the bottom, but using
too the left and right columns.
> Where you write "See above for solution" I don't understand what you
are talking about, could you tell me something about this solution, please?
>
> Thanks!
>
> Irma.
>
> André Knörig wrote:
>
>> Hi Irma,
>>
>> the reference is a little bit misleading. It says 'vendor extranet'
and links to the main corporate website. And that one is built with the
million-dollar Vignette StoryServer, as you can see by having a quick
look at the html of their start page.
>> But that doesn't mean it's not possible with Plone. In fact, with
any CMS, I guess, since in the end it's all just HTML, CSS etc. The
question is rather how to do it the easiest way with your given system.
>> In Plone, I suppose you could do it by either
>>
>> * ..moving around one of the two slot columns (possibly just a
css-thing, maybe also the main_template)
>> * ..creating a new slot, if you also need the left and right ones
(means extension of the whole slot machinery)
>> * ..thinking through what you really need: Dynamically changing
portlets at the bottom of many/every page (see above for solution)? Or
just some boxes with more or less static content on your front page? In
the latter case it's easier to do it with a layouting/content
aggregation product like CMFContentPanels (see the Collective).
>>
>> good luck,
>> andré>
>>
>> Irma Merino wrote:
>>
>>> Hi all!
>>>
>>> I read in plone.org that the Lufthansa's web (www.lufthansa.com) is
done with Plone but I don't understand how they've inserted 4 slots at
the bottom.
>>> I'm very interested in understanding that because I want to
implement this in my web.
>>> I'd like to know if they've done it changing the main template
adding new slots, or ... ?
>>>
>>> Thanks for your ideas!
>>>
>>> Irma.
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF email is sponsored by - The IT Product Guide
>>> Read honest & candid reviews on hundreds of IT Products from real
users.
>>> Discover which products truly live up to the hype. Start reading now.
>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
rob oliver wrote:
> Hi Irma
>
> fancy posting your solution to slots at the bottom?
>
> thanks
>
> rob
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click