Category appears where we don't want it

62 views
Skip to first unread message

Brad Rice

unread,
Apr 11, 2012, 12:13:52 PM4/11/12
to dotcms mailing list
Several versions back dotcms removed the checkbox on category for
making them active and instead decided to just use permissioning as a
method of determining it's use. However, we have a calendar page that
shows the word False in the Category listings for the items if they
have selected "Show on Front Page" category. We use that because we
can permission a category to only allow a CMS Admin to be able to
select an event to go to the home page. Having CMS Anonymous selected
on the category makes it show up as in the list of categories for the
calendar event. Short of doing an if statment in the loop to check for
the value, is there a way to set a category to some permission that it
can be pulled but not displayed?

--
Brad Rice
brad...@gmail.com
~
"We will encourage you to develop the three great virtues of a
programmer: laziness, impatience, and hubris." -- LarryWall,
ProgrammingPerl

Karen To

unread,
Apr 11, 2012, 4:06:26 PM4/11/12
to dot...@googlegroups.com
I'd also be interested in the answer to Brad's question.

Maria Ahues Bouza

unread,
Apr 17, 2012, 5:28:43 PM4/17/12
to dot...@googlegroups.com
Brad,

Could you please explain what you want to achieve in more detail?

This is what I understand:

* You have a category Show on Front Page
* You use the category to categorize content to be displayed on the home page
* You only wants CMS Admins to use this category

If this is correct, you should remove all permissions from the category and only CMS admins would be able to use it.

You'll need CMS Anonymous to show the content in the frontend.

But only having this permission should not allow other editors to use it, only the ones that have a role associated with the category.

Thanks
Maria

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.




--
dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS

"Packt Publishing 2009 Finalist for Best Other Open Source CMS"

Please consider the planet before printing this email.

Brad Rice

unread,
Apr 17, 2012, 8:57:08 PM4/17/12
to dot...@googlegroups.com
Yes, that is all good, but on the out of the box Calendar, all the
categories are pulled in a listing so you can click a category. I
don't want True and False showing on the calendar.

--
Brad Rice
brad...@gmail.com
~
"A person who won't read has no advantage over one who can't read." --
Mark Twain

Maria Ahues Bouza

unread,
Apr 18, 2012, 12:27:31 AM4/18/12
to dot...@googlegroups.com
Brad,

Would you send me a link to the page where it's showing?

I don't think I'm understanding the issue right.

Thanks
Maria

Brad Rice

unread,
Apr 18, 2012, 8:06:45 AM4/18/12
to dot...@googlegroups.com
Sure: http://www.uakron.edu/calendar/index.dot?id=ef584978-353e-411e-818f-aef23423e0bf&pageTitle=Today%20at%20UA&crumbTitle=Prospective%20Students:%20Spring%20Visit%20Day%20is%20April%2028

See where it says Calendars: Home Page , True

I guess the solution would be to move the category into it's own
category. This was built as you know way back in 1.5 and has been
updated and updated. I think before we lost the checkbox on category
it worked ok.

Maria Ahues Bouza

unread,
Apr 18, 2012, 11:11:05 AM4/18/12
to dot...@googlegroups.com
I can see that, so this means you have Home Page as a category parent and True and False as subcategories?

Brad Rice

unread,
Apr 18, 2012, 11:15:05 AM4/18/12
to dot...@googlegroups.com
Yes

Maria Ahues Bouza

unread,
Apr 18, 2012, 11:27:01 AM4/18/12
to dot...@googlegroups.com
Brad,

If you remove the CMS Anonymous from the parent category Home Page, it would not show at all there which is what you want right?

And I think the content should still show up because True and False would still have CMS Anonymous.

Or do you want to show Home Page only?

-Maria

Brad Rice

unread,
Apr 18, 2012, 3:26:09 PM4/18/12
to dot...@googlegroups.com
The even on our home page is based upon pulling by that category. So
that would break the home page pull wouldn't it?

Maria Ahues Bouza

unread,
Apr 18, 2012, 4:10:12 PM4/18/12
to dot...@googlegroups.com
Ok so when you pull content on the home page, what category are you using?

Home Page, True or False?

I'm thinking True right? If not then I'm not sure why you need the subcategories True and False

Brad Rice

unread,
Apr 18, 2012, 4:23:54 PM4/18/12
to dot...@googlegroups.com
I think I see the problem now. I have two Home Page categories. One
inside the Calendar Categories and one as a category of it's own. I'll
have to check to see which one they are using. Is there an easy want
for me to find out what category is what? Here is what my query looks
like: #pullContent('+structureInode:70574 +languageId:1 +c1021033c:on
+deleted:false +live:true','1','date2 desc')

How do I find out what 1021033 is?

Maria Ahues Bouza

unread,
Apr 18, 2012, 4:28:10 PM4/18/12
to dot...@googlegroups.com
If you have access to the database you can run

select * from category where inode = '1021033';
Reply all
Reply to author
Forward
0 new messages