Neil Hall
Forum Replies Created
-
AuthorPosts
-
Hi Kor
Sorry, I should have explained. We are using the ‘checkbox’ for the category selection. I think the screenshot is if you use the ‘Ajax chained’ category selection (which we do not want to use).
Is there any way to set the ‘Sub-Cat’ as the default when using checkbox?
Best Regards
NeilHi Kor
Fantastic, that is just what I wanted.
Many thanks for your great support once again.
Hi Kor
The screenshot is attached. The sign-in box just needs to be moved to the left.
Best Regards
NeilHi Kor
OK, weird…. it suddenly works. Not sure why, but thank you for looking at this.
On a slightly different topic. On the GD login page that it takes you to I am trying to move the login box over to the left. I entered
.login_form_1 { float: left; border: 1px #ccc solid; padding: 20px; width: 30%; margin-left: 1%; margin-bottom: 20px; }
Into the GD>Design>Scripts>Custom style css code but this does not seem to change it. Is this correct, or should I be doing something else?
Best Regards
NeilHi Paolo
I understand.
Is it possible you can direct me to the code where GD generates the Meta Title?
Best Regards
NeilHi Paolo
Many Thanks, That is perfect. Thank you once again for your great support
Hi Paolo
The structure that we have gives us what we trying to achieve, and the flexibility for the user to navigate easily through the different pages to what they are interested in.
To be clear, all I am trying to do is to hide the main category on the “add listing” page so they do not have to tick it (This is done by default).
Hi Paolo
IP has been entered, let me know if you have a problem
This reply has been marked as private.Hi Guust
Yes, I know that the main category is automatically selected when a sub-category is selected, which is what I want.I just wanted to clean it up so the user does not need to see the main category. Do you think this is possible?
Hi Stiofan
The jQuery example that you gave did not seem to work. I think the problem lies in the code that is automatically output when a Multiselect checkbox is generated in the Add Listing page. There does not seem to be anything that triggers the change. However, after a lot of playing about I came up with the following that worked for me
<script type="text/javascript"> jQuery(document).ready(function() { jQuery('.gd_multi_choice').on('change', function() { var selecttag = []; jQuery("input[name='geodir_add_genre[]']:checked").each( function (){ selecttag.push(jQuery(this).val()); }); jQuery('#post_tags').val(selecttag); }); }); </script>
If you have multiple CPT’s and therefore multiple ‘Add Listing’ pages then this will work on all of them as long as the ‘HTML variable name’ is the same.
Hi Stiofan
I have tried to use the jQuery example that you gave, but I can’t get it to work. I set up the
<span id='output'>none</span>
which display in the frontend as ‘none’.
I am using the html that is automatically generated by Geodirectory for the multiselect checkbow which is listed above.
I’ve used the JQuery in the example and tried different Id to #gd_field_geodir_add_genre, #geodir_add_genre_row, #geodir_add_genre and even #geodir_add_genre[] (which jQuery really does not like). I even tried using different classes, but the ‘option’ output does not change.With my limited knowledge it seems that within the code generated by Geodirectory there does not seem to be a name or Id I can tie into. And also when a checkbox is ticked it does not change the status in the same way the example you gave does.
Are my assumptions correct?
Best Regards
NeilHi Paolo
Sorry for the problem with the code, I did not realize.
Hi Paolo
I see the same problem when the Place Category link is clicked, taking places as the example the url is / places/country/region/city/category. My feeling is that it would be a lot more useful and make it easier for the site user if it was just /places/category/ . This way it would take them to the category to see similar posts (Not just those posts in the same city)
Could you tell me, is the code that does this in the geodirectory_template_actions.php in the geodir_action_details_taxonomies() function (line 1092)
My php is not that strong but it seems to be something to do with the code about line 1144.
Am I correct in thinking that this is the area I should be looking at?
Best Regards
NeilHi Paolo
Is it possible within a single cpt? For example if I use ‘places’as the example at present, as I explained before, depending on which post I am in it give the following three links (each display the original post it was from.
/places/tags/netherlands/zuid-holland/rotterdam/tag1/
/places/tags/united-kingdom/buckinghamshire/aylesbury/tag1/
/places/tags/united-kingdom/england/oxford/tag1/But if I type places/tags/tag1/ then it displays all 3 posts together! Which is a start in the right direction.
So I guess it is possible, how do I remove the part of the url between tags/ and /tag1 / ?
Best Regards
Neil -
AuthorPosts