It worked for me. But suppose out of these pages we want to filter only those pages for which page have particular property value.
For example Page2 have property "P1" with value "Home" and we want to fetch only that page which have this property with value "Home". In that scenario what will be the condition to be added in above code syntax.
How to make sure that from the drop down only string value gets saved in the data base and not the ID value.
Currently i have noticed that when i fetch value of drop down property its is returning ID value. I am fetching using GetValue("PropertyAlias") Method.
Get All Unpublished content pages by document type
Hi All,
We want to fetch all content pages from umbraco belonging to specific document type.
For Example :- There are 3 content pages (Page1, Page2 and Page3) and all of these are unpublished and belong to same document type.
Can any one please let us know the code we need to write fetch complete detail of these pages by applying filter of document type?
Regards
Tarunjit Singh
Hi Tarunjit!
Could this work for you?
Best of luck to you!
/ Dennis
Hi Dennis,
Thanks for the response.
It worked for me. But suppose out of these pages we want to filter only those pages for which page have particular property value.
For example Page2 have property "P1" with value "Home" and we want to fetch only that page which have this property with value "Home". In that scenario what will be the condition to be added in above code syntax.
Regards
Tarunjit Singh
Hi again Tarunjit!
I dont know what datatype P1 is but try this:
Hi Dennis,
Thanks for the answer.
How to make sure that from the drop down only string value gets saved in the data base and not the ID value.
Currently i have noticed that when i fetch value of drop down property its is returning ID value. I am fetching using GetValue("PropertyAlias") Method.
Regards
Tarunjit Singh
is working on a reply...