+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: New wiki page types

  1. #1
    Join Date
    Oct 2007
    Posts
    97

    Question New wiki page types

    Is it possible to click on a link and have a new page of a certain type open? The type of the page would depend on the template used.

    Ideally the user interface would allow for the creation of new wiki page types.

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    I'm not sure what you mean. Your question is somewhat ambiguous. Can you go into more detail?
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  3. #3
    Join Date
    Oct 2007
    Posts
    97

    Default

    Ok lets say that I have a template that formats a page for Product Information. Currently I create a new page, select 'Template:Product Information' from the drop down and insert it.

    I would prefer to have the option of creating a new page with the template applied with as little user intervention required as possible. Perhaps wiki.template might be what I need?

  4. #4
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Are all you product information pages sub-pages of the same page? In 1.10, we're adding a mechanism that a parent page can set a content tempalte for newly created child pages. For instance, you would set the sub-page template to be Template:Product_Information. Then each time someone clicks 'New Sub-Page', it would start with the contents of the Template:Product_Information page.

    Will that address your use case?
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  5. #5
    Join Date
    Oct 2007
    Posts
    97

    Default

    Yes that would be perfect in fact! Looking forward to using it...

  6. #6
    Join Date
    Mar 2008
    Posts
    17

    Default

    Quote Originally Posted by SteveB View Post
    Are all you product information pages sub-pages of the same page? In 1.10, we're adding a mechanism that a parent page can set a content tempalte for newly created child pages. For instance, you would set the sub-page template to be Template:Product_Information. Then each time someone clicks 'New Sub-Page', it would start with the contents of the Template:Product_Information page.
    Steve,

    Doesn't look like this new feature actually made it into the Jay Cooke release (not listed on new features and I tried naming a new template as described above but didn't work). Are plans to have such a page-specific content template feature incorporated into a release in the near future? This would be extremely useful for us.

    Thanks,

    - Marc

  7. #7
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    We changed the approach. Instead of using a template type that would be magically inherited, we added the wiki.create with which you can achieve the same effect.

    For example, the following will embed a button that will create a new page for you with a specified template. The benefit of this approach is that you can embed several different buttons to suit your needs instead of being limited that whatever pre-defined template type the parent page happens to have had.
    Code:
    {{wiki.create("Add product", _, "Product_Information")}}
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  8. #8
    Join Date
    Oct 2007
    Posts
    141

    Default

    This new approach doesn't allow you to specify a Page Title for the newly created page. That is lame
    When you use wiki.create, the newly created page has a title of "Page Title" which must be manually edited. That still makes page creation from a template a 2 step process, so nothing has been improved IMHO.

    I have a current situation where I use web.link to create a page with a dynamically created title.
    {{ web.link(page.path.."/"..date.year(date.now).."-"..date.month(date.now).."-"..date.day(date.now)..", "..date.dayname(date.now)..", Second Shift","Create today's shiftnote page for Second Shift.") }}
    I want to combine that ability with the automatic insertion of a template. Without both, it's still a two step process.


    Umm I guess I posted this yesterday here...
    http://forums.opengarden.org/showthread.php?t=2828

  9. #9
    Join Date
    Mar 2008
    Posts
    17

    Thumbs up

    Great! That will definitely work for our purposes and thanks, by the way, for the prompt reply and excellent new release.

    mhoydis does have a point regarding allowing an option to specify a Page and/or Display Title for the newly created page. What about adding a third 'button' option to also include a text entry field (e.g. no button, show button, button with text entry with ability to specify default) for the Page and/or Display Title? I think that might pretty cleanly resolve this.

    - Marc

  10. #10
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Maybe if you ask nicely and don't call the implementer "lame" he might think about it!
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts