Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page includes #23

Open
jdpage opened this issue Dec 21, 2015 · 2 comments
Open

Page includes #23

jdpage opened this issue Dec 21, 2015 · 2 comments

Comments

@jdpage
Copy link
Owner

jdpage commented Dec 21, 2015

Allow pages to include other pages.

New syntax: [[include:<pageid|pagetitle>]], [[syndicate:<pageid|pagetitle>]]

Behavior:

  • if a page title is used, and the page exists, it is rewritten to a page id on save.
  • the edit history of the specified page is included in the edit history of the current page.
  • if the specified page does not exist, all includes render as a redlink to that page.
  • [[syndicate:...]] renders as a regular link. Useful for aggregating edit history of multiple pages.
  • [[include:...]] renders as the entire contents of the specified page. It behaves as if the markup for the specified page was pasted directly into the markup of the current page before rendering, with the appropriate implications for links and header-based sectioning.
  • Includes/syndications are expanded twice. Third-level includes are rendered as links. This prevents pages from growing infinitely long, and syndications from becoming unwieldly monsters.
This was referenced Dec 21, 2015
@woodrowbarlow
Copy link
Collaborator

will included pages be wrapped in a div.include or any sort of HTML wrapper? would you like them to be styled in any particular way?

also, out of curiosity, will include also be used to embed a feed, or only wiki pages?

@jdpage
Copy link
Owner Author

jdpage commented Dec 21, 2015

  1. No, included pages will be entirely transparent on the render side. I thought about it, and decided that what I'd do is link to the edit pages of any included pages from the edit page. That way if someone goes to edit the included fragment, then it won't be too horrible of an experience.
  2. For now, only wiki pages. I may add feeds as an enhancement later.

@jdpage jdpage added this to the 0.2 Benzene milestone Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants