Developer forum

Forum » Feature requests » Different page properties for different page itemtypes

Different page properties for different page itemtypes

Lars Larsen
Reply

Hi

It would be so nice if it was possible to define which itemtypes enabled for page properties could be used on which itemtypes enabled as pages. Now I have one itemtype enabled for page properties which is used in the website on all pages in the website. But I would like to use different itemtypes enabled for page properties on different itemtypes enabled for pages. What if it was possible to define which itemtypes enabled for page properties would be attached to which itemtypes enabled for pages? It would be perfect if it was possible to use more than one itemtype enabled for page properties on one itemtype enabled for pages. In that way it would be possible to reuse the same itemtype enabled for page properties on different itemtypes enabled for pages. 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Lars

Thank you for the idea. We have decided not to add this feature in the product.

BR Nicolai

 
Lars Larsen
Reply

What a shame. I really miss that feature. But was wondering if I could mimic the feature by setting a hidden field on the page properties item with the value of the itemtype of the current page. By doing that field groups could be shown/hidden according to the itemtype of the currrent page. I know I can set a default field value by using the "Code()" statement. But is it possible to get the itemtype of the current page? And how is that done?

 
Nicolai Høeg Pedersen
Reply

You can find that on Content.Page.ItemType.

But why not keep the settings on the page item type when they are dependent on the item type? Create a group on the item type called "extended properties" or similar, and hold the settings there. You can even have it collapsed by default to avoid messing up the item it self.

Nicolai

 
Lars Larsen
Reply

You're right if the settings are to be used on all pages. But if the settings only makes sense on one page type I think it would be nice for the editor if the settings could be hidden/shown according to the page type.

 
Nicolai Høeg Pedersen
Reply

That is why I would add the settings to the item type (page type) it self - and not the page properties item

 
Lars Larsen
Reply

But if the page is not an item then that's not an option. Oh now I see that I have expressed my self wrong in the first place, sorry! I didn't mean different page properties for different page item types. But different page properties for pages with different page templates.

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Lars

Still - you can use items to create different page types - and use the settings in the layout template. And still have placeholders and paragraphs on that page...

Nicolai

Votes for this answer: 1
 
Lars Larsen
Reply

Hi Nicolai

At the time I started this thread I was working on a website running DW8.4 and in that version it's not possible to set if a new page shall open in paragraph or item view in the backend. Therefore I went on with the old page type, so the page always opens in paragraph view. So that's why I thought of the opportunity of adding different page properties to pages of different types. But you are absolutely right about how to do what I want. I will stick to pages as items. Items rules wink

 
Nicolai Høeg Pedersen
Reply

Great - glad you figured it out.

And yes - items rock!