EllisLab text mark
Advanced Search
     
search:field_name with title
Posted: 26 June 2012 12:21 PM   [ Ignore ]
Avatar
Joined: 2010-10-20
163 posts

hey guys

is it possible to search for title?
it’s no custom field, so I am not shure how to adress it.

{exp:channel:entries channel="files" search:title="asd"

next step would be going dynamic for my own tagcloud:

{exp:channel:entries channel="files" search:title="<? echo $tag ?>"

PHP is allowed, but there are no results, also no errors

 Signature 

v2.5.3 - Build Date: 20120911

 
Posted: 27 June 2012 06:59 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2010-10-20
163 posts

alright, my second question about going dynamic is solved, just had to set php parsing stage to input.

first question is still open, how to adress title in search?

 Signature 

v2.5.3 - Build Date: 20120911

 
Posted: 27 June 2012 01:18 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey frankylefteye,

I am sorry to hear you are running into this problem.

Searching the title is the default. You should not have to do anything.

Can you show me your search form code?

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 28 June 2012 04:07 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-10-20
163 posts

so code should be like this:

{exp:channel:entries channel="files" search="<?php echo $tag; ?>"

Is `this only searching in title or everywhere?

 Signature 

v2.5.3 - Build Date: 20120911

 
Posted: 29 June 2012 02:48 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey frankylefteye,

I mean the search form for searching the site. Are you searching everywhere?

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 04 July 2012 05:36 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2010-10-20
163 posts

I do not mean the search form for searching the site.

I want to do like this:
http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#search-field-name

this is the example:

search:body="pickles" 

now I want to search ONLY in title:

{exp:channel:entries channel="mychannel" search:title="<?php echo $tag; ?>"

But this one is not working, it’s only working when I use a custom field

 Signature 

v2.5.3 - Build Date: 20120911

 
Posted: 04 July 2012 05:48 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2008-12-08
239 posts

I’ve just come up against this too Franky.
search:title does not work. The search:field parameter only works with custom fields - crazy I know!
There is a free add-on which can help though: http://devot-ee.com/add-ons/search-fields

 Signature 

Janine
Tidy freelance web development | Pro Network member

 
Posted: 04 July 2012 07:21 AM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2010-10-20
163 posts

thx tidy, this is it!

 Signature 

v2.5.3 - Build Date: 20120911

 
Posted: 05 July 2012 01:18 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey all,

Nice work here! Glad tidy was able to help!

If you need anything else, please just let me know by opening a new thread.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade