Ticket #1439 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Extend getValue to support slices and sections

Reported by: jdlrobson Owned by: MartinBudden
Priority: minor Milestone: 2.6.3
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

currently running <<view field text>> allows the view macro to access the field with name "field" on the current tiddler.

It seems logical that <<view ##field text>> would print the section with name "field" and likewise <<view ::field text>> would print the slice with name field.

This becomes extremely useful when making use of the templating supported by the list macro on tiddlers with slice/sections. (See  https://groups.google.com/group/tiddlywiki/browse_thread/thread/b29b12d52932b5e6)

It can be achieved by improving the getValue function. Patch and tests (previously not existent) attached.

Attachments

SliceAccess.diff Download (2.6 KB) - added by jdlrobson 2 years ago.

Change History

Changed 2 years ago by jdlrobson

Changed 2 years ago by MartinBudden

  • owner changed from JeremyRuston to MartinBudden
  • milestone set to 2.6.3

Changed 2 years ago by MartinBudden

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

Fixed in changeset:12743

Note: See TracTickets for help on using tickets.