Module

Archived
Forum
(read-only)

Sitemap Module

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Brian Litzinger

     

Multiple categories and channel specific future entries

Support (Resolved)

Ben Parizek
Ben Parizek

Good day,

I’ve heard good things about Sitemap and it’s indeed clean and easy to use.  Thought I’d try it out for this latest project but I think I’ve found a few limitations for my needs.  Just wanted to confirm:

1) Seems allowing future entries in a channel specific way is not possible out of the box.  In another thread you mentioned that it may be with a little code editing (http://devot-ee.com/add-ons/support/sitemap-module/viewthread/2837/)?

2) The site I’m currently trying to use this on is fairly complex.  I’m using multiple category groups on certain channels and need a specific category in the second level of the category hierarchy of a specific category to build the URL.  I’m guessing that sounds as ugly to code as it feels to write.  And it says in the docs that just the first category will be returned which won’t be any good for me.  Is there a way for me to add my own channel entries look to the existing xml template {exp:sitemap:get}?  Or would I basically just have to recreate the sitemap from scratch if I tried to go this route?

I’ll appreciate any thoughts you can offer.

(P.S.  No need to spend time answering #1 if we can’t sort out #2.)

PutYourLightsOn
# 1
PutYourLightsOn

1) yes a small change to the code will solve this

2) it’s not completely clear to me what you need to do. do you simply need the second category to always appear in the url as opposed to the first category? or is there more to it than that..

Ben Parizek
# 2
Ben Parizek

In the case of #2, I have multiple category groups applied to the channel:

CATEGORY GROUP 1
Some Category 1
—Some Subcategory 1

CATEGORY GROUP 2
Some Category 2
—Some Subcategory 2 (This is the one I need for the url-title)

So, I guess I need the second category of the second category group to display in the URL (for one specific channel).  I’m not exactly sure how to speak of which category I need.  I could also say I need the first, second level category from the second category group as I think all of a subcategory’s parents are selected by default when you select it.

Cheers.

PutYourLightsOn
# 3
PutYourLightsOn

seems like your URL setup may not have the logic that Sitemap requires. you can always hard-code the category in per channel but I’m guessing that’s not what you want to do. otherwise it doesn’t sound like your URL setup can be automated.

Ben Parizek
# 4
Ben Parizek

Thanks for your time.  Thought that may be the case.