SOLVED - Articles category list in an article

Moderator: geof

Locked
pras
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Sep 19, 2006 6:23 am
Location: Central Greece

SOLVED - Articles category list in an article

Post by pras » Fri May 22, 2015 10:15 am

Hi all.
I want to have in the same article (home page), together, some intro (paragraph) and a category list with the latest 25 articles of one or more categories.

Is that possible to do that?

I know that there are some modules/plugins but it is not free.

Thank you.
Last edited by pras on Fri May 22, 2015 8:20 pm, edited 2 times in total.

User avatar
Pnkr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 174
Joined: Thu Sep 01, 2011 7:26 am
Location: Athens, Greece

Re: Articles category list in an article

Post by Pnkr » Fri May 22, 2015 10:59 am

You dont need a third party module you can do it with the core joomla modules.

In your article place where you want the below tag

Code: Select all

{loadposition in-article}
Then go to Extentions > Module Manager, click new and select a module such as Articles - Category

And put it in the position in-article

With this way, your module will appear in any article with the loadposition in-article tag,
Last edited by imanickam on Sat May 23, 2015 1:45 am, edited 1 time in total.
Reason: Moved the topic from the [English] forum General Questions/New to Joomla! 3.x to the forum Greek forum.

pras
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Sep 19, 2006 6:23 am
Location: Central Greece

Re: Articles category list in an article

Post by pras » Fri May 22, 2015 11:27 am

Pnkr wrote:You dont need a third party module you can do it with the core joomla modules.

In your article place where you want the below tag

Code: Select all

{loadposition in-article}
Then go to Extentions > Module Manager, click new and select a module such as Articles - Category

And put it in the position in-article

With this way, your module will appear in any article with the loadposition in-article tag,
Thank you so much....
One more question...:
Is it possible to customize the list in order to have something like a table (like the screenshot below)?
Thank you once more!
1233333.png
You do not have the required permissions to view the files attached to this post.

User avatar
Pnkr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 174
Joined: Thu Sep 01, 2011 7:26 am
Location: Athens, Greece

Re: Articles category list in an article

Post by Pnkr » Fri May 22, 2015 4:04 pm

pras wrote:
Pnkr wrote:You dont need a third party module you can do it with the core joomla modules.

In your article place where you want the below tag

Code: Select all

{loadposition in-article}
Then go to Extentions > Module Manager, click new and select a module such as Articles - Category

And put it in the position in-article

With this way, your module will appear in any article with the loadposition in-article tag,
Thank you so much....
One more question...:
Is it possible to customize the list in order to have something like a table (like the screenshot below)?
Thank you once more!
1233333.png
:) Ελληνας είσαι ρε φίλαράκι; Χαχαα καθομαι και γράφω κι εγώ αγγλικά... τώρα το είδα! :P

Λοιπόν. Η εμφάνιση του module για να γίνει σε table θα πρέπει να έχεις φτιάξει το view του συγκεκριμένου module σε τέτοια μορφή.

Έχεις πρόσβαση στο template να το αλλάξεις; (αν ναι πες να σου πω τι να κάνεις).

pras
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Sep 19, 2006 6:23 am
Location: Central Greece

Re: Articles category list in an article

Post by pras » Fri May 22, 2015 4:25 pm

Καλησπέρα πατρίδα!
Γέλασα πάρα πολύ!
Λοιπόν έχω πρόσβαση στο template (χρησιμοποιώ το protostar)...
Θα το εκτιμούσα αν μπορούσες να με καθοδηγήσεις.
Σε ευχαριστώ!

User avatar
Pnkr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 174
Joined: Thu Sep 01, 2011 7:26 am
Location: Athens, Greece

Re: Articles category list in an article

Post by Pnkr » Fri May 22, 2015 7:08 pm

Μια χαρά τοτε!

Καταρχήν θα πρέπει να πάρεις το "view" του συγκεκριμένου template.

Δηλαδή θα πας στο site σου στη διαδρομή \modules\mod_articles_category\tmpl

εκεί μέσα υπάρχει η σελίδα default.php. Κάνε την copy και θα την αντιγράψεις στο protostar στη διαδρομή

html/mod_articles_category

Γενικότερα για να καταλάβεις, κάθε Module που υπάρχει στο joomla μπορείς να πάρεις την view του από την εκάστοτε διαδρομή και να την βάλεις στο φάκελο html μέσα σε ένα φάκελο που θα τον ονομάσεις όπως ακριβώς λέγεται το module. Στην προκειμένη περίπτωση πήραμε το mod_articles_category.

Οπότε τώρα το Joomla, όποτε φορτώνει αυτό το module δεν θα κοιτάζει την προεπιλεγμένη μορφή του αλλά αυτή που έβαλες στο φάκελο html.

Τώρα το δευτερο βήμα

Θα πρέπει να ανοίξεις το αρχείο αυτό (default.php) και να πειράξεις τη δομή του όπως σου είναι απαραίτητο. Φτιάξε tables, list οτι σε βολεύει.

pras
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Sep 19, 2006 6:23 am
Location: Central Greece

Re: Articles category list in an article

Post by pras » Fri May 22, 2015 8:16 pm

Σε ευχαριστώ πολύ!

Τώρα πρέπει να δω πως δημιουργώ table στο Joomla και να κρατήσω τα χαρακτηριστικά (class) του Bootstrap για να φαίνεται όπως στην εικόνα....
Ξέρεις μήπως που μπορώ να κοιτάξω για να δω πως το κάνει το joomla, όπως όταν δημιουργείς σε μενού Articles » Category List όπως συτό που έχω στο screenshot?
Που κρατάει τις classes του bootstrap και τις ενεργές γραμμές και τα sortaρισματα στις στήλες?

Σε ευχαριστώ!

User avatar
Pnkr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 174
Joined: Thu Sep 01, 2011 7:26 am
Location: Athens, Greece

Re: SOLVED - Articles category list in an article

Post by Pnkr » Sat May 23, 2015 6:48 am

η δομή του table ετσι όπως την θες είναι αυτή

Code: Select all


<table class="table table-bordered">
  <thead>
    <tr>
       <th>Τίτλος</th>
    </tr>
  </thead>
  <tbody>
    <tr>
       <td>Περιεχόμενο</td>
    </tr>    
  </tbody>
</table>



Locked

Return to “Joomla! 3.x”