Hide secondary category

More
14 years 7 months ago #17068 by grabit
Replied by grabit on topic Hide secondary category
Thanks, I knew you were the right guy to ask for.

You're great ggppdk! :D

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #17069 by ggppdk
Replied by ggppdk on topic Hide secondary category
You are welcome,

this morning,

i started one really big web-app project and one windows application, i will have less time, but i will try to answer most forum posts for joomla 1.5 Flexicontent. ;)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #17196 by micker
Replied by micker on topic Hide secondary category
thanks !!!

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37474 by refacil
Replied by refacil on topic Hide secondary category
Hello ggppdk

please a help...

How can I hide a field core, for example Categories, in the frontend of the form?

I try, but I can't it

thank you for your collaboration


comercializadorainmobiliaria.com ... p/registro

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37522 by ggppdk
Replied by ggppdk on topic Hide secondary category
is that you have v2.0.3 beta (if you have beta1 r1685 then please update to v2.03. beta2, it has 2 bug fixes that you need)

You should not hide "required" fields, if your field is already set a default value then e.g. for category field:

if (JRequest::getVar('Itemid', 0)== 45 ) {
$css = '
/* hide CATEGORY label */
#jform_catid-lbl {
visibility:hidden;
}

/* hide CATEGORY field */
#container_fcfield_name_catid {
visibility:hidden;
}
';
$document = JFactory::getDocument();
$document->addStyleDeclaration($css);
}

Add above to index.php of your joomla template, or to some other PHP file.

The above CSS code will be added when current Joomla menu item id is 45

-- SO make sure you replace 45 with the correct menu item id !!


-- BUT for item submit you do not need to hide it, in submit menu configuration you can make it obligatory to be a specific category, thus user cannot edit it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save