I'm revisiting this question. All over our site, there are links to the most current newsletter — [[[newsletter:current]]]
The original site structure predated the ListPages module, so we relied on includes. Every week, after building the latest newsletter, I'd simply update the include on [[[newsletter:current]]], and we'd be good.
Building these newsletters started to feel cumbersome… formulaic… repetitive. So instead I built a _template and a series of Listpages and feeds that pull users' content for each newsletter. It's much more easily managed. But now it's much harder to automatically show and point to the most current newsletter, mostly because I can't nest modules.
In some instances, I can work with this. For example, I've enclosed the top-bar menu in its own Listpages, so it calls the link to the most recent newsletter. But in other instances, I can't rely on link-via-listpages — I can't pass the link as an included variable, for example, because it breaks the include. And there are links to [[[newsletter:current]]] elsewhere on the internet.
I understand the concern about nested modules' effect on server load. Ironically, the status quo requires many more ListPages located all over our site, where previously I could simply link to the one page — doesn't that represent a higher server load? Ideally, I'd love to call a single ListPage item which calls many items, but the dev team has rejected that.
So I'm proposing an alternative (limited) exception to the modules within modules limitation. Within the redirect module, can we please allow the destination to be the first item in a Listpages? That way I could continue to work with all those links to [[[newsletter:current]]].
Okay… so you're asking for the Redirect module to have attributes for selection like category, page, tags and order … but with limit="1" and to redirect to the page it finds?
I can't think of any use cases now (except for yours) but it sounds like it could be useful.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
I'd love for Wikidot to make this happen, but I won't hold my breath.
Can you think of alternative approaches? Like, I dunno — an embedded html block containing a redirect to a URL pulled via RSS?
Much as the community has discussed html blocks, I've never used them and don't really understand their applications & limitations.
Well if it is any use to you Scott… the combination of tags, iftags and redirect works fine for me. So redirecting to a fixed page (meaning existing in the page it self, not beeing passed through by URL) only if this page has a certain tag is possible at this moment.
for example: As default I want a certain page to be redirected to an other page, but this other page is as an information item on this page itself. An information item can be every variable that belongs to a page… the list is documented in the listpages module examples are %%title%%, %%conten{1} but also %%form_data{url}%%… so your code could look like this then
this code is on the _template page… so every page created in this category will be redirected to it parent unless the tag of the page is "_template"
Maybe this can be a solution to your problem… otherwise… It can maybe help someone else
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
This also works and means you don't need to enter the site domain (though %%site_name%% or %%site_domain%% would work nicely for that anyway - and both are already implemented)
I use the above code in a post's template page, for redirecting back to the parent thread after creating or editing the post.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
Good improvement Leiger… thanks I'll use that myself too. BTW I use it for exact the same reason: opening a page in edit modeand redirecting after the "save".
The above mentioned code needs a link to go to that page and set a number of things like the parent. The construction of that link is like thisl:
Try this one:
Create new page
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Not sure who you're replying to with the second part, but you've made a mistake in the code block (two forward slashes in a row between "true" and "parentPage")
And when I click on that link, I get an error message:
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
Sorry about not setting the permissions correctly of that page. It's adjusted.
I also changed the post… hopefully it's more understandable in this way
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Ah yes, I've been using that code as well… (obviously, as it won't work without defining a parent at page-creation-time)
I've found that when editing you still need the /noredirect/true. It's a bit strange to me, but is just a bit longer link so no issues.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
Disagree with the "noredirect/true…" part: If you click on the link I provided it works fine without it. Are there things I'm overlooking? create new page
Other thing (minor however): If a contributer desides not to create the page and click "cancel" (s)he stays on the creation-page, the redirect does not work in that case.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
That's strange. I'm pretty sure it wasn't working like that at some point.
Will go back and check my forum,to see if I can do it without appending 'noredirect' to the URL.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
These are really good tools to know about. They do a good job of creating a "many-to-one" flow, in which any given page is directed back to a parent page.
I'm looking for a redirect in the opposite direction. I need a single, static page that redirects to the top of a ListPage list. That destination page could be the most recent child, or the most recent in a category with pagetype="normal".
You've described a redirect that's automatically tailored to each page, which is cool. I'm looking instead for a redirect that shifts dynamically whenever we add a new page to the category.
Here is an example of what I understand.
You have navigation with an item "news" (the fixed page you are reffering to). Now you wish that people are redirected to the latest news-item if they click on the link "news". Is that correct?
If so I don't understand why you want to redirect them because the page "news" can easely hold the latest newitem with using a Listpages limit="1" order="created_at"…
So… this is probably not what you want so I'm not getting something
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
That's exactly what I'm getting at. Remember, our newsletter contains lists of items. Since there's no way to show a listpage within a listpage, it's not possible to show the whole newsletter using a straight-up listpage with limit="1".
Even if we didn't have this nesting issue, I still think such a redirect would be useful. When users view the first item in a list, it isn't immediately obvious that they need to click through to the source page in order to edit it. Instead they're likely to attempt to edit the list. A redirect would take them right to the source.
Okay then tell me what is the category of the "mother"-listpage and what is the selector?
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
You can see the newsletter in action here. On our test site, here's an example.
From a single page, I'd like to redirect to the first (latest) page in the Wikli category, limiting pagetype to "normal".
I can not find a way to work around this one… we should get this wish massivly rated upwards… nudge all your friends to do so! This wish would have a really big benefit to building things.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Steven, what point is the rating system if it is just going to be manipulated like that?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
I see your point, Shane. A few times I've driven users toward my wishes & invited them to rate. I've also appreciated invitations from others to review their wishes. I'm frankly confused about whether the rating system even makes a difference in the dev team's acceptance of feedback.
I've said before, I think it's a pity we've siphoned substantive feedback away from the community site. I think this space is frequented by a much narrower set of Wikidot users with increasingly specialized needs. Discussions here would enrich that space and draw more users along in their Wikidot expertise.
So I support Steven's strategy, if only to expand the discussion.
what do you mean Leiger?
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
No need to get defensive - I'm not attacking you =)
I didn't even notice the links on the community site - not sure what you're talking about there. My reply was in response to "we should get this wish massivly rated upwards… nudge all your friends to do so!"
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
Oops…
oh Leiger, you know…nerds like us don't have friends :-)
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
… speak for yourself :) And somehow I prefer "geek" over "nerd". Not sure if there's any difference in the definition, it just sounds better. Using iPod at the moment so it's difficult to check the definition.
We are getting off topic here though…
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server
So Leiger you are reffering to the fact that I posted a link on the community site to this wish… well…
I don't use my signiture as a big advertising board, and I only used those crosslinks because they were relevant to the discussion. Dataforms are great but they need to be finished or have aditional functionality like this to make them really useful to the community…
Michael advertised the 500.000th user and wishes here get like "5" votes… I think people don't find these pages like Scott correcly mentioned.
BTW I those crosslinks I made were not only wishes of mine (I think :-) )
BTW II there is no fun in comming to the feedback site as a new user and having to read all the wishes posted there.
BTW III even many of the top wishes I find "handy" but not necesary … I need those that I advertised to make applications work… having a filemanager or all the top 5 wishes cool projects can be build without them
BTW IV I thought maybe a reaction would come on this post so I read all the wishes on the fist 8 pages or so… I must say I posted before I completed this but for sure I would like to advertise and encourage people to also vote for wish 296, 232, and 323
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.