td1
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!
virk
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
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.