4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: holas on September 12, 2007, 11:23:30 AM

Title: Categories in left menu
Post by: holas on September 12, 2007, 11:23:30 AM
How can I introduce the first categories in the left menu of 4 images?. Thank you.
Title: Re: Categories in left menu
Post by: mawenzi on September 12, 2007, 11:31:30 PM
... for short ...
... if you have a limited number of "first categories" ...
... then add the links of the categoies in /templates/<your_template>/userlogginform.html and userloggininfo.html ...
Title: Re: Categories in left menu
Post by: manurom on September 13, 2007, 12:30:19 AM
 :flag-en: Hello;
mawenzi is right. Why not add it to these files?  But you can make you own left menu.
:flag-sp: Hola;
mawenzi tiene razón. ¿Porque no usar esos ficheros? Pero puedes también hacer tu proprio menú de izquierda.

:flag-en: Show only master categories on the left menu:
 :flag-sp: Mostrar solo las categorías maestras en el menu de la izquierda:
       
Code: [Select]
$categories = get_categories(0);



Code: [Select]
$config['num_subcats'] = 0;


 :flag-en: Now open templates/your_template/home.html and add in the left column:
 :flag-sp: Entonces, abre el fichero templates/tu_plantilla/home.html y añade en la columna de izquierda:

Code: [Select]
{if categories}
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr>
                            <td class="head1" valign="top">{lang_categories}</td>
                          </tr>
                          <tr>
                            <td class="row2" valign="top">{categories}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  <br />
                  {endif categories}



 :flag-en: My parents are born in Ecija and say I'm a bad "cañatero". I am ready to help you as far as I can. Feel free to contact me by PM.
 :flag-sp: Mis padres suelen decir que soy un cañatero malo, pero estoy dispuesto en ayudarte según mis posibilidades. Seras bienvenido si pides ayuda por PM.

!Vivan los astigitanos!
Title: Re: Categories in left menu
Post by: mawenzi on September 13, 2007, 12:41:02 AM
hi manurom,

... are you sure about the left menu in all templates ... ?
Title: Re: Categories in left menu
Post by: manurom on September 13, 2007, 12:43:31 AM
Not really, mawenzi;
it works well in home.html template file, if you want to have a homepage with just new added images and a cat navigation on the left. But if holas needs to show his cats in any page, there's in this forum a good MOD called Sitemap (http://www.4homepages.de/forum/index.php?topic=9299.0) by V@no ( who else? ) that does it fine.
but did holas mentioned it?

I think his question is a beginning. Most features have to be described and selected, as usual.

But you and me are not the site owner, we cannot be in his mind... so let us just expect an answer, and we will know what is the final purpose, I hope.

Best regards.
Title: Re: Categories in left menu
Post by: mawenzi on September 13, 2007, 12:48:17 AM
... I think ... when left menu ... then left menu in all templates ... ;)
... but we must see what holas says ...
Title: Re: Categories in left menu
Post by: manurom on September 13, 2007, 12:51:28 AM
... but we must see what holas says ...
I really agree.

 :flag-en: By the way, please holas keep the 4images copyright in your site here:
 :flag-sp: por lo tanto, holas, no escuendas por favor el copyright de 4images aquí:
Écija Balompié S.A.D. :: Zona Multimedia  (http://www.ecijabalompie.com/multimedia/)
Title: Re: Categories in left menu
Post by: Pikoy on November 23, 2007, 11:02:46 PM
Hi, I have set my category table cells to "1" in ACP so I can have a category list in left menu.

The problem is in categories page, the subcategories are also in 1 column all the way down the page, how can I set a different number of table cells to show subcategories in the categories page like for example, 2 columns?

Thanks in advance  :)