Ticket #47 (closed enhancement: fixed)

Opened 3 years ago

Last modified 21 months ago

Use @INDEX_LIST by default when auto-creating categories?

Reported by: dom Owned by: Kake
Priority: normal Milestone:
Component: openguides Version:
Severity: normal Keywords:
Cc:

Description

Wot it says.

Change History

Changed 3 years ago by ChristopherSchmidt

I've changed this on the Boston/Milton Keynes guides. The only downside to this that I can see is that now I have to figure out some other way to make my map links work, since people no longer see site_index.tt, and I don't have control over the templating of the nodes in the INDEX_LIST variable.

Changed 21 months ago by bob

we should actaully make the autocreate stuff a configurable option. Since people may want explanation text to and more than just the index_list macro

Changed 21 months ago by Kake

  • owner changed from dom to Kake
  • status changed from new to assigned

I'm going to do this by letting people add an autocreate_content.tt template to their custom template path. The following TT variables will be available to the template: index_type (e.g. "Category"), index_value (e.g. "Vegan-friendly"), and node_name (e.g. "Category Vegan-Friendly"). (Note capitalisation - index_value is what they typed in to the form, and node_name is the fully free-upper-ed name of the autocreated node.)

Changed 21 months ago by Kake

Actually it should probably be called custom_autocreate_content.tt

Changed 21 months ago by Kake

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [930].

Note: See TracTickets for help on using tickets.