Design, Templates, & Tags
Start Topic

How do I make a Hash variable name a variable?

By sportsterpaul on Jul 19, 2012 at 9:04 PM 1 Vote 0 Votes

For MT5:
My category page template needs to create different hash variables for the category in context as well as any subcategories. So I figure to just make the hash name a variable.

It seems impossible to do this. I know how to concatenate the with the word Hash or some other unique little string, but I can't make that a name of a hash variable.

I have tried everything I can think of, including making the unique variable have a value with braces in like cat1Hash{} and then try to use that, but nothing seems to work, not Var, setVar, not SetHash not set SetVarBlock. Nothing seems to accept a variable as a hash name.

Reported on Movable Type 5

1 Reply

| Add a Reply
  • spacer nishavas01 | July 27, 2012 4:20 AM | Reply

    Hi friend pls tell me. what is benefits to make a Hash variable name.
    Thanks!

    damdama lake

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

Movable Type

Design, Templates, & Tags

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

Documentation

86 302

Last Topic: website entries by masoud on Oct 26, 2011

General

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

Installation

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

Open Source

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

Performance

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

Plugins & Plugin Development

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

Pricing and Licensing

26 95

Last Topic: How do ProNet Licensees Get Current Versions of Movable Type? by Bill on Aug 28, 2011

Product Ideas

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

Support For Beta Tests

5.x Beta

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

Action Streams

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

General Support

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012

  • spacer All Forums
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.