Backlinks clean up

Bugs » #19


This section on the Community is no longer supported, in favour of Wikidot's Official Feedback Site .

It is retained here for archiving purposes.

Posted by gerdami gerdami on 03 Aug 2008 11:19, last edited on 09 May 2010 05:32

This bug is open

Description

OK. It is not really a bug. However, sometimes it might happen that backlinks list the current page itself, its page template, navigation pages nav:top or nav:right and this is annoying.

Also mentioned is that BackLinks does NOT work with links behind images.

Links to forum Posts

Solution

There should be

  • a skipCurrent attribute, like the ListPages module has
  • category="-nav, -system, -template, +blog" with the "-" to deselect or "+" to select categories

Contact

gerdami gerdami . Please visit his/her userPage.

Rate this Bug

Rate the urgency of this bug. If you think it is more urgent and important than it's current rating suggests, rate it up.

rating: +4
Backlinks shows hidden pages
Leandro Arndt Leandro Arndt 26 Jan 2010 13:50

I've posted another problem to the community forum: this module shows my hidden pages! In my opinion this is a bug, so I repost it here:

I'm writing some drafts as hidden pages. e.g. I'm writing a page about Karl Marx and named it pessoas:_karl-marx (I will later rename it to pessoas:karl-marx when it's ready), but it already links another page on my wiki, called conceitos:marxismo, where I use a backlink module. The problem is that the backlinks module is showing that hidden draft!
The code I put is simple, just added the backlink module to my templates:

[[size 80%]]Categoria: [[[%%category%%:indice | %%category%%]]] | [#discussao Discussão][[/size]]
%%content{1}%%
[[iftags -_índice]]
+ Verbetes referenciando este
Os seguintes verbetes fazem referência a "%%title%%":
[[module Backlinks]]
[[/iftags]]
%%content{2}%%
[[iftags -_índice]]
+ Discussão [[# discussao]]
Espaço para os leitores discutirem o verbete "%%title%%":
[[module Comments hide="true" title=""]]
[[/iftags]]
------
[[include _autoria]]
------
[[include _licenca]]
by Leandro Arndt Leandro Arndt , 26 Jan 2010 13:50
Re: Backlinks shows hidden pages
leiger leiger 28 Jan 2010 23:29

What do you mean? It is impossible to hide any pages in your wiki, unless you make the whole site private (a feature to hide pages in public wiki's is currently being tested, though)


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 28 Jan 2010 23:29
Re: Backlinks shows hidden pages
Brunhilda Brunhilda 29 Jan 2010 09:09

Hello, Leandro.

As Shane already said, there is no possibility to have "hidden pages". Still. They are working on hidden categories and we'll soon have them (hopefully).

But I think that what you don't want is that your page in "process" is listed by Backlnks module until it is finished. That is why you are using low dash in front of the name. But this is not how it works. There is a simple solution: don't include the page name in which you have a backlink module to the page in "process".

There are different ways to control which page will appear in the list and which not. You can use tags, or different categories.

Using tags:
In page where you want your articles listed, you put Listpages module:

[[module ListPages order="created_at desc" tag="-in-work" separate="false" limit="20" category="pessoas"]]
# %%linked_title%% 
[[/module]]

When you create a page pessoas:karl-marx you tag it with in-work and it will not show in the list. When you are finished, just remove the tag and that's it. Bad thing is that if you work on different articles at the time, the articles will order according to the time of page creation and not tag removal. if you want that the pages be ordered according the order of finishing it, then use the same module, but without the tag parameter.

[[module ListPages order="created_at desc" separate="false" limit="20" category="pessoas"]]
# %%linked_title%% 
[[/module]]

Create a page sandbox:karl-marx. When you finish, you rename the page to pessoas:karl-marx and the article will appear as the latest in the list.

It would help a lot if you opened the site, because if we see the source of your pages, we can help better.


If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney

Last edited on 30 Jan 2010 06:06 by leiger
by Brunhilda Brunhilda , 29 Jan 2010 09:09
Re: Backlinks shows hidden pages
leiger leiger 30 Jan 2010 06:07

Hope you don't mind Brunhilda…… I changed "dateCreatedDesc" as that is deprecated and isn't in the documentation any more. It was changed to "created_at desc" instead.


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 30 Jan 2010 06:07
Brunhilda Brunhilda 30 Jan 2010 09:01

Whatever, this was there just as an example. Maybe Leandro wants to order pages according to some other criteria…

PS:Why it is not in documentation anymore if it works as a Swiss clock?


If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney

Last edited on 30 Jan 2010 09:02 by Brunhilda
by Brunhilda Brunhilda , 30 Jan 2010 09:01
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /