DPL talk:FAQ
I'm wondering if DPL can help with my situation. I would like to recreate the "What Links Here" page functionality on an article page. Basically each article would show all of the other pages/articles that refer to it? I've read through this site and it seems DPL is the answer, but I havent read anything specific to this. I'm pretty new to the whole WIKI so sorry if this is the wrong forum for this...
- Dsilve 02:03, 18 January 2008 (CET)
This is very easy with DPL. Just use linksto with PAGENAME or FULLPAGENAME. Example:
Pages linking to the current page:
Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.
- Gero 08:07, 18 January 2008 (CET)
Err... Why not create the FAQ using a DPL?
Each FAQ goes into a separate page, and the DPL lists them all. I actually tried this on my own site... the problem was that I wanted to create a TOC to list the questions at the top of the page, so I did something like "==%TITLE%==", however, the TOC appeared to be inside the DPL!
This was a problem because I wanted to split the FAQ into sections like Technical questions and General questions, which is naturally acheived by subcategories of the FAQ category, then I used a separate DPL for each subcategory. This messed up because ... er TOC was messy? I gave up in the end.
Just thought though! --Dmb 22:16, 15 September 2007 (CEST)
- Further, the articles would be sorted by hits... FAQ baby! This would be displayed on a page with a 'create an answer' inputbox. I dare you to say it should not be so! (Make it so?) --Dmb 22:18, 15 September 2007 (CEST)
I'm trying to work on this website
http://www.collaborativelandscape.org/wiki/ARCH_728_2007
We are using DPL to make categories.
If you'll look under Department/University Resources there are two pages,
NDSU Homepage and Architectural Department Homepage that I want to actually link to external pages.
NDSU Homepage needs to direct people to www.ndsu.edu
I've tried creating a page called NDSU_Homepage and then from there redirecting people to http://www.ndsu.edu but that doesn't work for some reason it just leaves me at the redirect page.
My category code looks like:
<br>
|align="left" width="33%" style="background-color:#FFFFFF; border-top:1px solid #808080; border-bottom:1px solid #808080;padding-top:10px; padding-right:10px; padding-left:0px; padding-bottom:10px;" valign="top"|
<h2 style="margin:0;background:#f3f3f3;font-family:sans-serif;font-size:120%;font-weight:bold;border:1px solid #808080;text-align:left;color:#000;padding-left:0.4em;padding-top: 0.2em;padding-bottom:0.2em;">'''[[:Category:Department/University Resources|Department/University Resources]]'''</h2>
<DPL>
category=Department/University Resources
ordermethod=title
order=ascending
redirects=include
count=10
</DPL>
My redirect page looks like:
#REDIRECT [http://www.ndsu.edu]
[[Category:Department/University Resources]]
Do you have any suggestions? Thanks
Reply
- Wiki redirects expect a wiki PAGE link not an url.
- So your problem has nothing to do with DPL
- Your Homepage looks nice but the wiki code contains many pieces which are very similar. You should consider to put the DPL statement into a template page (you must use DPL parser function syntax in that case). Maybe also some of your layout-related code could be moved to such a template.
Gero 09:56, 7 November 2007 (CET)
?
Ok I'll take a look at templates that'd be great to keep our pages to a similar design. However are you saying there is no way to have a link under my dpl category that directs people to an outside site? Or is there a way and I'm just missing it?
You can always create links to outside URLs as part of normal wiki text or as part of DPL output. But the #REDIRECT does not accept external URLS. You would have to use javascript to create an automatic forwarding. See the source of the following DPL statement: Link to Google coming from DPL output ...
Could you help me, please?
I need a little query, which lists all images used by a given article. It would be such simple ...:
{{#dpl: |namespace=image |linksfrom={{FULLPAGENAME}} }}
... if linksfrom
would list links to image-pages, but it doesn't :-(
Any idea? Sorry for my lack of English ... --WiMu 11:54, 30 April 2008 (CEST)
Reply
There was a similar request recently which lead to the new command imageused. But this works the other way round: it finds all articles which contain a certain image. See Issue:Imagelinks criteria. Maybe you can extend the code in a similar way? Upload an enhanced version of the source and I will test, document and publish it as part of the next release .. Gero 12:19, 30 April 2008 (CEST)