Author Topic: Categories in left menu  (Read 10795 times)

0 Members and 1 Guest are viewing this topic.

Offline holas

  • Newbie
  • *
  • Posts: 38
    • View Profile
Categories in left menu
« on: September 12, 2007, 11:23:30 AM »
How can I introduce the first categories in the left menu of 4 images?. Thank you.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Categories in left menu
« Reply #1 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 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

manurom

  • Guest
Re: Categories in left menu
« Reply #2 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:
  • :flag-en: Open the file "index.php" and find:
  • :flag-sp: Abrir el fichero "index.php" y localizar:
       
Code: [Select]
$categories = get_categories(0);


  • :flag-en: Insert just after:
  • :flag-sp: Añadir justo despues:

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!

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Categories in left menu
« Reply #3 on: September 13, 2007, 12:41:02 AM »
hi manurom,

... are you sure about the left menu in all templates ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

manurom

  • Guest
Re: Categories in left menu
« Reply #4 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 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.
« Last Edit: September 13, 2007, 12:30:05 PM by manurom »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Categories in left menu
« Reply #5 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 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

manurom

  • Guest
Re: Categories in left menu
« Reply #6 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 

Offline Pikoy

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Categories in left menu
« Reply #7 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  :)