Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Macro examples Docs
By on2raj , Section Help! []
Posted on Thu Sep 30, 2004 at 12:00:00 PM PST
The Admin Guide is less than helpful, here.

I want to create a two argument macro, but the Admin guide is less than healthy.

I've tried this:
<a href="|upload_link_user|((1))" > ((2)) </a>

Calling it thusly:
((audio littlebird.rm Little Bird))

And this is how it renders, unusable:

<!-- MACRO: begin macro 'audio' -->
<!-- MACRO: original format: ((*audio littlebird.rm Little Bird)) -->
<a href="/scoop/files/littlebird.rm%20Little%20Bird">  </a>
<!-- MACRO: end macro 'audio' -->

I know I'm just missing some obvious and vital part of the syntax, but I have no idea what it could be.

Thanks!

< Pilot Project | Help! Help! Post Failed! >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· More on Docs
· Also by on2raj

Story Views
  16 Scoop users have viewed this story.

Display: Sort:
Macro examples | 2 comments (2 topical, 0 hidden)
With multiple parameters.. (none / 0) (#1)
by Driusan on Fri Oct 01, 2004 at 08:51:41 PM PST

..you need to put [] around them when calling the Macro like so:

((audio [littlebird.rm] [Little Bird]))

Otherwise Scoop will think that the entire string you pass it is just the first argument, and all the other parameters are empty. (Technically, because of the way Scoop handles it, if you leave the [] off the last parameter like ((audio [littlebird.rm] Little Bird)) it'll still work, but you're better off being consistent and putting square brackets around all your parameters if you have more than one)



Macro examples | 2 comments (2 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search