Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Suggestions for attaching media to a page
td1 #1
Member since Jul 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Suggestions for attaching media to a page
Curious if there are better ways to go about "attaching" media to a page?

Currently, I have setup a "Create New KB article" link in the sidebar which then uses the Bureaucracy plugin to create new pages within a "KB" namespace.

The new pages are created using a template in their own sub-namespace using Bureaucracy's incrementing number feature (ie: KB:KB000010:My_new_KB_page).

Using the HeaderFooter plugin and the MediaList plugin I've been able to then show media saved to the KB:KB000010 namespace in a similar fashion to attachments linked to a document or email.

The main downside I am seeing is the sitemap becoming somewhat difficult to navigate due to pages being hidden beneath a "KB000010" namespace which obviously gives no indication as to what is within that namespace. If I create new pages in the same namespace then the sitemap and linking to other pages might improve, but I am unsure how to then "attach" media to a single page.

Thanks!
The author has attached one file to this post:
DokuWiki-AttachmentsInFooter.png 30.3 kBytes
You have no permission to open this file.
Avatar
virk #2
Member since Aug 2008 · 503 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
If I understand your requirements correctly, I perhaps would have done it differently: In the namespace "kb" new articles "kb000010" would appear as a page. Each article would look like the following:

===== KB 000010 =====

Bla, bla, bla.

==== Attachments ====
  * [[link to one attachment|]]
  * [[link to one attachment|]]
  * [[link to one attachment|]]

I would do it like above because I would not require to have an own namespace for each new page only for to collect the attachments. In this case all attachments would remain in just one media-namespace "kb". One advantage could be that you can link to the same attachment from different pages.

Or: You write a 2nd page "kb000010_attachments", which just looks like

==== Attachments 000010 ====
  * [[link to one attachment|]]
  * [[link to one attachment|]]
  * [[link to one attachment|]]

and you include the attachment-page to the article-page with the "include-plugin".

(For indexing of our whole wiki we use the plugin indexmenu, which automatically freshes its index as soon as new pages are written)
td1 #3
Member since Jul 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Thanks virk.

I think ultimately I'm over complicating things here and not embracing the more organic structure the wiki format offers.

I modified the current setup so that the page names became the namespace and each page was 'start.txt' in each namespace. That afforded a much more readable sitemap but required some coding to make certain page listings list the namespace instead of 'start' everywhere :)

I'm changing the setup now to just pages and a consolidated media namespace - see how this works in practice.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2017-11-22, 06:43:19 (UTC +01:00)