Want to add a Thumbnail & exlude from nav as a page default
Permalink
Hi everyone,
I've created a new attribute to add a page thumbnail & I want to add this to the default version of my Event page type, along with Exclude from Nav so that these are automatically there for my client when she adds a new page.
My problem is, that I've added these into the page defaults but when I add a new page they are missing. Do I need to do anything special to make the attributes stick?
I've created a new attribute to add a page thumbnail & I want to add this to the default version of my Event page type, along with Exclude from Nav so that these are automatically there for my client when she adds a new page.
My problem is, that I've added these into the page defaults but when I add a new page they are missing. Do I need to do anything special to make the attributes stick?
you can hook the on_page_add event and apply it
Hi StephenPassion,
I just tried, and it seems to work fine. After creating the image/file attribute, I clicked the "Edit" button for the "Event" page type and enabled the attribute by clicking the corresponding checkbox. That attribute then shows up in the page properties when I create a new page of type "Event."
Is that what you're trying to do, or am I missing something?
-Steve
I just tried, and it seems to work fine. After creating the image/file attribute, I clicked the "Edit" button for the "Event" page type and enabled the attribute by clicking the corresponding checkbox. That attribute then shows up in the page properties when I create a new page of type "Event."
Is that what you're trying to do, or am I missing something?
-Steve
hes saying in page defaults i think
Ah ok, so you want the value of your custom attributes, when set via page defaults, to be remembered when a new page of that type is created. That does seem reasonable, and the UI implies that it should happen, but apparently it doesn't. :-/
It would make for a good feature request though.
-Steve
It would make for a good feature request though.
-Steve
Thats exactly it Steve. I want it to be remembered when I create a new page.
Should I submit this as a feature request then.
Should I submit this as a feature request then.
It sure wouldn't hurt, as that's the best way to officially record it for consideration. I have to say, though, I'm a bit confused myself as to where to submit such requests, unless it's via the bug tracker, which you can find here...
http://www.concrete5.org/developers/bugs...
If there's a more appropriate place, perhaps someone else knows where it is. :-/
-Steve
http://www.concrete5.org/developers/bugs...
If there's a more appropriate place, perhaps someone else knows where it is. :-/
-Steve