German Counties (Bundesländer) in Foundation


(Thomas Schulz) #1

Hi guys,

I searched the Foundation Doc’s but I didn’t find a solution.
I’m doing a website and wonder if there is any possibility to edit for example one of the Option Templates to get a German County List. Or Austrian… or…
I saw this in some checkouts via PayPal, when I purchase Stacks.

Any hint?

Thomas


(Oliver) #2

Hi @iGude,

you can go to your Stacks Folder -> FoundationPack1.stack (you can access its contents bei renaming the whole thing into *.devstack, so its still usable in rw, but should go back to the ‘stack’ extension when you’re done with everything inside, some finder alternatives like pathfinder or ide’s like espresso also can access .stack-files) -> Contents

(by default its this path:
/Users/YOUR_USER_NAME/Library/Containers/com.realmacsoftware.rapidweaver/Data/Library/Application Support/RapidWeaver/Stacks/FoundationPack1.stack/Contents
)

There you may duplicate and rename e.g. the file ‘FoundationFormSelectOptionAustralia.stack’ to ‘FoundationFormSelectOptionGermany.stack’, go into the new stack, then open Contents -> Resources -> template.html

In this file you find the preset options, e.g.
<option value="ACT">Australian Capital Territory</option>

You may now edit the list the way you need, you can find the correct short-codes at wikipedia, for germany its this link: de.wikipedia.org/wiki/ISO_3166-2:DE

Next go in the contents folder and open the Info.plist
There you need to edit the first key’s (CFBundleIdentifier) string (com.joeworkman.stacks.foundation.form.select.option.australia). Replace ‘australia’ with ‘germany’.

Now we’re done with the stack’s insides. The new ‘FoundationFormSelectOptionGermany.stack’ - Stack is ready to be used. But to make sure it won’t be deleted when an update is shipped, move the stack out of Foundation Pack 1 into the Stacks-Folder. That’s it. (Remember to rename *.devstack files back to *stack.) Enjoy.

~N