The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Code to search on two labels question
Nasshorn
post Mar 9 2018, 10:42 AM
Post #1





Group: Members
Posts: 2
Joined: 9-March 18
Member No.: 26,607



I am brand new to the forum and I am a total novice to HTML code but have been able to learn a little by searching and experimenting. I purchased a Template for my blog (which is on Blogger) and it has a nice menu system that pulls up posts based on a search for certain labels. Here is one of the lines in the code: <li><a href='https://scottlawfindingpixels.blogspot.in/search/label/Gear'>Gear</a></li> which obviously, as it says, searches the blog for the a post with the label "Gear". My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"?

Thanks for any help on this.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 9 2018, 11:39 AM
Post #2


.
********

Group: WDG Moderators
Posts: 7,787
Joined: 10-August 06
Member No.: 7



That looks like an ordinary link, but I suspect Blogger is doing a search before generating the linked page.

QUOTE
My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"?

No, you can't follow two links at once. Instead it would require some kind of form elements, such as checkboxes. Alas I don't know what Blogger templates offer, but I'll move the thread to the web site functionality forum.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Nasshorn
post Mar 9 2018, 11:53 AM
Post #3





Group: Members
Posts: 2
Joined: 9-March 18
Member No.: 26,607



QUOTE(Christian J @ Mar 9 2018, 09:39 AM) *

That looks like an ordinary link, but I suspect Blogger is doing a search before generating the linked page.

QUOTE
My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"?

No, you can't follow two links at once. Instead it would require some kind of form elements, such as checkboxes. Alas I don't know what Blogger templates offer, but I'll move the thread to the web site functionality forum.


Thank you Christian J. smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 9 2018, 01:26 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,883
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Mar 9 2018, 05:39 PM) *

No, you can't follow two links at once. Instead it would require some kind of form elements, such as checkboxes. Alas I don't know what Blogger templates offer, but I'll move the thread to the web site functionality forum.


No, but it's theoretically possible that Blogger's search thing can search for two labels. I've never used Blogger and probably it can't since you are supposed to click on a label and you can only click on one. But impossible it ain't. If it is possible only Blogger knows the format needed. tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd April 2018 - 01:21 PM