A HREF TITLE Field in the Category Tree...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imagecrafting
    Mivite

    • Aug 2011
    • 125

    #1

    A HREF TITLE Field in the Category Tree...

    Hey Hey it's Monday...

    Ok so for my category tree I wanted to add my new Custom Category Field (which is a long, somewhat spammy title) to the title parameter of the a href tag, like so:

    <mvt:item name="toolkit" param="cattree_category|fulltitle|l.all_settings:c ategory:id|FullCatTitle" />
    <a href="/page/JDA/CTGY/&mvta:cattree_category:code;" title="&mvte:global:fulltitle;"> &mvt:cattree_category:name;</a>

    Because this is posted here you can safely assume it isn't working.

    If I change the title to a string like this:
    <a href="/page/JDA/CTGY/&mvta:cattree_category:code;" title="BOO!"> &mvt:cattree_category:name;</a>

    it works great showing BOO! as the title hover over. Any ideas?

    Cheers,

    Michael
  • ids
    Developer Partner








    • Mar 2006
    • 2171

    #2
    Re: A HREF TITLE Field in the Category Tree...

    I'm assuming all the syntax is correct. I'm not sure you need to encode.

    &mvte:global:fulltitle;

    Try this:

    &mvt:global:fulltitle;

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    Comment

    • imagecrafting
      Mivite

      • Aug 2011
      • 125

      #3
      Re: A HREF TITLE Field in the Category Tree...

      Thanks Scott, but that didn't do it. I also tried &mvta as well. I left this code up there so you can see the generated html. Looks like this:

      <a href="/page/JDA/CTGY/lights" title=""> Dive Lights</a>

      Cheers,

      Michael

      Comment

      • ids
        Developer Partner








        • Mar 2006
        • 2171

        #4
        Re: A HREF TITLE Field in the Category Tree...

        hmmm...another suggestion: make sure all the items you're calling in the page are assigned to the page.

        Scott
        Need to offer Shipping Insurance?
        Interactive Design Solutions https://www.myids.net
        MivaMerchant Business Partner | Certified MivaMerchant Web Developer
        Competitive Rates, Custom Modules and Integrations, Store Integration
        AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
        My T-shirt Collection is mostly MivaCon T-shirts!!

        Comment

        • imagecrafting
          Mivite

          • Aug 2011
          • 125

          #5
          Re: A HREF TITLE Field in the Category Tree...

          Scott,

          I thought of that, but since this is in the category tree, it doesn't have a page with "Items" on it to check... Unless there is somewhere else that is assigned for the category tree...

          Comment

          • imagecrafting
            Mivite

            • Aug 2011
            • 125

            #6
            Re: A HREF TITLE Field in the Category Tree...

            Any Ideas Anyone?

            Comment

            • nottheusual1
              Mega Mivite


              • Jul 2008
              • 1124

              #7
              Re: A HREF TITLE Field in the Category Tree...

              Do you have something like KSE Variables to see if the global variable you are calling is available?

              Comment

              • imagecrafting
                Mivite

                • Aug 2011
                • 125

                #8
                Re: A HREF TITLE Field in the Category Tree...

                I just installed it, but know NOT how to use it...

                Comment

                • nottheusual1
                  Mega Mivite


                  • Jul 2008
                  • 1124

                  #9
                  Re: A HREF TITLE Field in the Category Tree...

                  In "system extensions settings" enable the module then activate it on the KSE tab. Insert the code from the admin panel between the closing body and html tags on the page template you want to test on. Then make sure the KSE item is assigned to the page (like CTGY page).

                  Then refresh the page. A wealth of information will present itself.
                  Last edited by nottheusual1; 10-11-11, 10:00 AM. Reason: fat fingers

                  Comment

                  • imagecrafting
                    Mivite

                    • Aug 2011
                    • 125

                    #10
                    Re: A HREF TITLE Field in the Category Tree...

                    Cool, works great but I don't see the variables I'm looking for.

                    The biggest problem I'm having is that this is in the Category Tree, so IT IS NOT on a particular page, it is on every page. I need to know how to add this code to the category tree:

                    <mvt:item name="toolkit" param="customcategory|fulltitle|l.all_settings:cat egory:id|FullCatTitle" />
                    which means I also need to add the "Toolkit" ITEM. How to I assign the "Toolkit" to something that has NO ITEMS tab?

                    Comment

                    • nottheusual1
                      Mega Mivite


                      • Jul 2008
                      • 1124

                      #11
                      Re: A HREF TITLE Field in the Category Tree...

                      That's the first step - the variable isn't getting generated. I know this is painfully obvious, but I've done it a few times - you do have the "Toolkit" item assigned to every page and are you seeing the variable you are trying to use (l.all_settings:category:id) in the KSE list?

                      Comment

                      • imagecrafting
                        Mivite

                        • Aug 2011
                        • 125

                        #12
                        Re: A HREF TITLE Field in the Category Tree...

                        Please reread my last post. THERE IS NO "ITEMS" tab to assign the toolkit when you are editing the Category Tree... But just for good measure I assigned the toolkit to EVERY page...
                        Last edited by imagecrafting; 10-11-11, 10:52 AM.

                        Comment

                        • nottheusual1
                          Mega Mivite


                          • Jul 2008
                          • 1124

                          #13
                          Re: A HREF TITLE Field in the Category Tree...

                          Reread my post - is it ASSIGNED TO ALL THE PAGES you use the Cat Tree on.

                          OK - you did. Cool. Anything different on the variables?
                          Last edited by nottheusual1; 10-11-11, 11:00 AM.

                          Comment

                          • imagecrafting
                            Mivite

                            • Aug 2011
                            • 125

                            #14
                            Re: A HREF TITLE Field in the Category Tree...

                            That tool is awesome and here's what I don't understand: If you click on Kid's Scuba Gear, you will see the variable:
                            g.fulltitle - &mvt:global:fulltitle; which contains the Value "Kids Scuba Gear & Kids Snorkeling Equipment" which is EXACTLY what I want as my title="" attribute of the A HREF tag.

                            So why doesn't it render?

                            Do I need an escape sequence???
                            Last edited by imagecrafting; 10-11-11, 11:22 AM.

                            Comment

                            • nottheusual1
                              Mega Mivite


                              • Jul 2008
                              • 1124

                              #15
                              Re: A HREF TITLE Field in the Category Tree...

                              Put something else in the custom field - a single word like "test" - and see if that makes a difference.

                              Comment

                              Working...
                              X