--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
Do you *have* to have "Related Pages" enabled when publishing for the
cleanup tool to work properly?
Cleanup has never worked reliably for me but I *never* publish related pages
because it just fille the target directory up with garbage. I could never
really work out why anyone would want to publish related pages, but maybe
I'm missing something.
Regards,
Richard Hauer
Hi Gerald,
Welcome to the group.
Hope that helps,
-Jian
--
I’m interested in how to quantify “configured correctly” – but leaving that aside for a moment, are you saying that the “Publish related pages” should really only publish full pages that happen to share content either the page/linked pages that the publish was launched against, either by virtue of the “related” page referencing this content (assuming the ‘follow references’ option is enabled) or by ‘connect existing’?
If so, this would make MUCH more sense than that it is intentionally publishing all the page fragments, which is what the training/documentation/experience seems to suggest happens. I’m more comfortable that its design is sensible but its implementation is broken, than that the design is just silly.
Which brings me back to “configured correctly”. I think a HUGE community service would be to enumerate the configuration steps, “best practices” if you will, regarding project configuration. I haven’t looked at an RD best practice project since Up and Away, but I suspect even if one exists it will be very hard for a noob to discern which values need setting and what to leave default from an already setup project. There’s just too many places to look.
Perhaps a blog post is in order? For example, whether it’s necessary to disable publishing on every template variant in order to prevent the fragments from publishing. (Though why they would default to publishable when 8 of 10 templates are only fragments I don’t know). Anyway that sort of stuff.
Regards,
Richard Hauer
Solution Architect
1) Why CurrentIndex instead of CurrentPage?
When the rendering context is established the PageId for the current page
being processed is the pivot point.
CurrentPage gets you the page that owns that Id, like this: PageId -> Page
CurrentIndex goes like this: PageId -> Page -> MasterPage -> Nav Index
When you call GetUrl() against the Page it calculates the Url based on the
NavigationLink by preference (where you are in a nav context) or the
MainLink otherwise.
When you call GetUrl() against the Index it first gets the Page (can you
guess which one) then does the same thing...
Summarising...
CurrentPage.GetUrl() => PageId -> Page -> Url
CurrentIndex.GetUrl() => PageId -> Page -> Master Page -> Nav Index -> Page
-> Url
From the code I can't see that they'd ever give different results, only that
CurrentIndex has to work harder to get there.
2) Ensure pages are only connected in one location
This completely flies in the face of a major tenet of a CMS, and makes it
hard to understand why there would be a feature called "Connect Existing
Page"
Further, I don't think that following your "rules" will prevent the
publication of page fragments, filling up the production environment with
"rubbish" files, and I don't believe anyone has categorically said whether
it is necessary to check the "related pages" option in order to make the
Cleaner function work. If the point of the Cleaner is to remove unnecessary
files it seems counter intuitive that you would need to poblish unncesary
files in order to make it work.
Or am I still missing something?
Shankar,
Good idea and I guess I can remember that we have done this in another project some time ago.
But in our current Delivery Server we don’t have a useful date field to filter or sort.
Have tried to do it like this:
- Select in Project Menu: Content => Find
- Used HTML as Type in the search form
But there are only two date field to filter: Validity and Created
In the help file of this form the two date fields are described like the text below:
- Validity: Click Options to specify a validity period. Only content items valid for at least the entire period entered are returned as a match.
- Created on: Choose Options to specify the period during which the content was created.
And also there is not date field like published in the search result.
Did I something wrong?
Thanks,
Gerald
> > From: reddot-cms-users@googlegroups.com
>
> > [mailto:reddot-cms-users@googlegroups.com] On Behalf Of Jian Huang
> > > From: reddot-cms-users@googlegroups.com
>
> > > [mailto:reddot-cms-users@googlegroups.com] On Behalf Of Jian Huang