Opened 16 years ago

Closed 15 years ago

#47 closed enhancement (fixed)

Use @INDEX_LIST by default when auto-creating categories?

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

Description

Wot it says.

Change History (5)

comment:1 Changed 16 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.

comment:2 Changed 15 years 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

comment:3 Changed 15 years ago by Kake

Owner: changed from Dominic Hargreaves to Kake
Status: newassigned

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.)

comment:4 Changed 15 years ago by Kake

Actually it should probably be called custom_autocreate_content.tt

comment:5 Changed 15 years ago by Kake

Resolution: fixed
Status: assignedclosed

Fixed in [930].

Note: See TracTickets for help on using tickets.