2 of 2
2
category_parent_name & category_parent_id
Posted: 05 August 2008 08:08 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  286
Joined  02-02-2007

Thanks, Dabbledoo.

Unfortunately enabling PHP in templates is not acceptable.

Using Query module is quite cumbersome and the only Subcategories plugin which allows to get list of child categories after specifying certain parent category was not updated since 2005 and certainly will not be upgraded to be compatible with EE 2.0. The author of this plugin placed copyright and lost interest in it. Still, much activity this plugin’s forum thread generates clearly shows that its functionality is really desired by EE community.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 05 August 2008 09:56 AM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  184
Joined  10-24-2006

Yeah I agree that having to turn on PHP in templates is not acceptable.  Unfortunately, that’s all I know how to do right now.  Hopefully this feature has been added to EE 2.0… and/or someone else with plugin knowledge can create a ‘new’ subcategories plugin.

 Signature 

Dabbledoo Media

———————————————————————-
Gadgetell - Tech News and Reviews
Gamertell - Gaming Hardware and Product News
Appletell - Apple News and Rumors

Profile
 
 
Posted: 05 August 2008 10:17 AM   [ Ignore ]   [ # 21 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

child_only parameter would be extremely helpful.

Profile
 
 
Posted: 08 August 2008 04:48 AM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  286
Joined  02-02-2007

Hi all,

I just published “Child categories” plugin in which I tried to make available all those features related to parent and child categories which I miss in ExpressionEngine.

It would be nice if at least some of those features would be available not through this amateurish plugin, but as part of core functionality.

Any comments and suggestion appreciated.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 22 August 2008 04:19 AM   [ Ignore ]   [ # 23 ]  
Grad Student
Avatar
Rank
Total Posts:  56
Joined  04-14-2006

Ingmar a great posy. I agree, so here is my vote too.


@los1sol “child_only parameter” I agree 100% this is something we need time and time again.


@Laisvunas - I’ve played with your plugin and its great. Is there any ay you can add all the functionality of the standard catagories tags to your plugin? We really need ot display child only catagories and to display:

{category_name}
{category_description}
{category_id}
{category_image}
{count}
{total_results}

Profile
 
 
Posted: 22 August 2008 06:17 AM   [ Ignore ]   [ # 24 ]  
Grad Student
Avatar
Rank
Total Posts:  56
Joined  04-14-2006

This is what I’m going to have to do, the problem is if the client adds a catagory the we’ll need to amend this code as the IDs are hard coded so it aint great:

{exp:query sql   = ” SELECT   cat_id AS parent_category_id,
                  cat_name AS parent_category_name,
                  cat_url_title AS parent_category_url_title,
                  cat_description AS parent_category_description,
                  cat_image AS parent_cat_image,                 
                  cat_order AS parent_cat_order                  
                  FROM exp_categories WHERE cat_id = ‘11’ ORDER BY cat_order”}               

<h1>parent ID: {parent_category_id}</h1>
<p>parent Name: {parent_category_name}</p>
<p>parent Title: {parent_category_url_title}</p>
<p>parent Image: {parent_cat_image}</p>
<p>parent Description: {parent_category_description}</p>

{/exp:query}


{exp:query sql   = ” SELECT   cat_id AS child_category_id,
                  cat_name AS child_category_name,
                  cat_url_title AS child_category_url_title,
                  cat_description AS child_category_description,
                  cat_image AS child_cat_image,                 
                  cat_order AS child_cat_order                  
                  FROM exp_categories WHERE parent_id = ‘11’ ORDER BY cat_order”}                   

<h2>child ID: {child_category_id}</h2>
<p>child Name: {child_category_name} </p>
<p>child Title: {child_category_url_title} </p>
<p>child Image: {child_cat_image} </p>
<p>child Description: {child_category_description}</p>

{/exp:query}


If anyone has a better idea how to achieve this please let us know, the worknig example can be seen here http://probel.previewurl.net/ click on the left nav to get a pop up whic will display child catagories.

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65027 Total Logged-in Users: 39
Total Topics: 82116 Total Anonymous Users: 25
Total Replies: 441310 Total Guests: 181
Total Posts: 523426    
Members ( View Memberlist )