h1: Accessing metadata with embperl (site administrators, content owners) Your metadata is passed to ewok as a command line argument, so you can access it simply by shifting it into a data structure:
[- $req = shift; -]
If, for example, you had metadata items "page\_next" and "page\_previous", you could test for that metadata using the following construct:
[$ if ($req->{meta}->{page_next} || $req->{meta}->{page_previous}) $]
If your page\_next and page\_previous metadata items each took a URL, you might then choose to create next and previous links or buttons for the sequence of files, which you could do by:
[$ if ($req->{meta}->{page\_previous}) $]
Previous page
[$ endif $]

[$ if ($req->{meta}->{page_next}) $]
Next page
[$ endif $]
Note that $req->{meta} contains all file metadata OR'ed with directory metadata, so for things that are inherited from directories you don't have to say:
$markup\_bold = $req->{meta}->{markup\_bold} || $req->{dir}->{markup_bold}
since that's already been done for you. Directory metadata that doesn't have a file metadata item of the same name only exists in $req->{dir}.