Should be able to specify site in "Per-Question Options"

maximz2005 avatarmaximz2005 created an issue

Currently, the site can only be specified in global options. This means that all questions have to be from one Stack Exchange site.

I think it'd be better if it would be possible to set a global site and then be able to set a per-question site that overrides the global rule.

Should be an easy thing to implement and it would improve StackTack! :)

Comments (4)

  1. zamtools

    The plugin doesn't have to be global, you can feed it different selections:

    $('.stackoverflow-tack').stacktack({site: ''});
    $('.serverfault-tack').stacktack({site: ''});
    <div id="stacktack-12345" class="stackoverflow-tack"></div>
    <div id="stacktack-30303" class="serverfault-tack"></div>

    I originally wanted to have the site parameter able to be overridden, however there is no clean way to represent URLs in a class name used for overriding.

    Unless you can think of a good way to represent urls in a class name, I think the approach I detailed above will suffice for most situations.

  2. Nathan Osman

    I have forked StackTack over on GitHub ( and one of the changes I made was to make 'site' an instance-specific parameter (though it can still be specified globally and per-invocation).

    Here is an example:

    <div class="stacktack" data-site="stackoverflow" data-id="1732348" ></div>

    I've also made a few other changes, which I've documented on the GitHub page.

  3. Ian Zamojc

    (Reply via

    Thanks! These sound like many of the changes I wanted to do but never had the time.

    If we can get those back into bitbucket I'd gladly pull them into the mainline once I get a chance to test them.


    On Tue, Mar 20, 2012 at 9:06 PM, George Edison <>wrote:

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.