Questions tagged [segments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
296 views

Parsing URL with hashes

Have this URL: http://192.168.1.2/univsched#/csf How can I parse this using EE tags? I want the value: csf segment_x tags don't work.
2
votes
2answers
122 views

segment begins with?

Is there a way, WITHOUT PHP, to test if a segment begins with a value? We send emails with shortened URLs and want to be able to parse the segments accordingly. i.e. http://www.oursite.com/...
4
votes
2answers
600 views

Anyone know how to capitalize a page title?

I'm using the {segment_2} variable to complete various bits of info on a page. The segment is all lowercase, but that's fine as I'm using CSS to capitalize those elements. The problem comes when I'd ...
1
vote
3answers
164 views

how to parse segment_3 in tag stash:embed:

This is my setup. My URL my-site/index.php/group/template-x Template-x must call two different pieces of code. I want that to happen by using the third segment, which shall be NL or BE. So my-site/...
0
votes
1answer
152 views

Latest entry being used if invalid entry segment?

I have 'strict urls' enabled in my build, with a 404 pages set up. For some reason, if an incorrect entry segment is used within a template group URL it is displaying the latest entry. For instance ...
2
votes
1answer
478 views

query string params

Got a site that want to use tracking in URLS like http://domain.com/segment_1/segment_2/?utm_campaign=google Now this works fine locally but on the production server, it renders the 404. On MAMP I'...
1
vote
2answers
114 views

How does Freebie ignore segment_1 and know what template to use?

I am wanting to use Freebie to ignore segment_1. I want to use a 'programs' template group but dont want programs in the url. for example: NO - domain.com/programs/cycling YES - domain.com/cycling ...
2
votes
2answers
130 views

Site uses switchee to serve index or 'static' page; Now getting unexpected 404s

My site's index page template uses switchee to determine whether to serve up index (home) page or a "single page" entry from the static channel. I'm attempting to set up a 404 page for the site, and ...
1
vote
1answer
28 views

Access segments in hooks

Is it possible to access segment or page information in the hooks? Each hook has different parameters so I can't rely on those to get segment information.
0
votes
1answer
322 views

How to handle ampersands in URL segments

I'm using the channel entries search parameter to filter entries based on the value in a segment. However, I've just spotted that some of these segments contain ampersands, and these don't work ...
1
vote
2answers
2k views

Display content if url segment does not match a url_title

I am using pages to display content on a page called Speed Sales. I display the entry by checking for segment_2 and matching it to a channel entry basically. I need to display content in case someone ...
0
votes
1answer
841 views

If statement comparing two string ee variables won't return false

I have the following code in a template: segment is: {segment_3} <br /> category is: {category_url_title}<br /> {if {segment_3} == {category_url_title}} submenu goes here {/if} It gives ...
0
votes
1answer
293 views

Need some help with GWCode Categories, url segments, and conditionals

I have a products section where I give each product group a main category. Initially I had it setup where each product had a main category and a sub category. GWCode generated a side nav from the ...
0
votes
1answer
37 views

Output segment_x via template HTML

Using EE 2.5.5, I wish to output a segment_x (segment_2, which aligns with our department names) so that I may class by department; i.e., <article class="main {segment_2}"> <more html ...
0
votes
2answers
266 views

'Fuzzy' conditionals

feeling little dumb for this. What I am trying to do is to make my list of checkboxes checked depending on {segment_5} If the value is '6', that is easy with <input type="checkbox" name="...
2
votes
1answer
394 views

Gathering category_id value from segment - Low Seg2cat

Not sure if I doing it wrong, my basic url goes like this ==== 'site.dev/scooter' - I used {segment_1_category_id} and I get the value of "8" which is correct If my url is 'site.dev/8' and I used {...
2
votes
1answer
132 views

Error 404 with structure after the 2nd segment

I am using structure, and therefore, sometimes I have more than the standard 2 segements (template_group/template). the error page get's triggered whenever the first or the second segment is ...
1
vote
1answer
96 views

{url_title} In URL, and Edit Form on Next Page

having a bit of trouble getting the url_title from the filled out safecracker form to appear correctly, here is what i have: {exp:safecracker channel="personal_trainer_directory" entry_id="" ...
2
votes
2answers
142 views

How Does ExpressionEngine Handle Outside Directories?

I have a directory in my web root (let's call it microsite) that is not managed by my main ExpressionEngine site, but people still need to access it. So, naturally, I just navigate to http://mysite....
1
vote
1answer
896 views

How to remove category URL indicator segment?

I have a products section with 5 different product categories and all products are assigned to one category only. The current URLs are like this -->http://site.com/products/category/oral-care/. I ...
0
votes
1answer
281 views

Removing root-level segment with Structure and Freebie

I am using Structure and Freebie on a recent project. I have a root-level page in Structure called “Supernav” with five sub-pages (Students, Parents, Faculty, Alumni, Galleries). When visiting any one ...
3
votes
4answers
2k views

Detect any pagination in a conditional

I've got a site where it shows different content dependent on the url segments (categories eugh!) but as there can be up to 4 url segments, any of which could have pagination, i want to be able to say ...
1
vote
2answers
174 views

Can I use a conditional to match a string in a url segment?

The issue I’m coming up against is that a client’s site has a series of nested units, tasks and segments, and they want different conditionals run depending on the various segments. Now, I could use ...
4
votes
1answer
187 views

How to deal with Seg2Cat no results in channel query

I'm using Low Seg2Cat to retrieve the third segment of my url and pass it as category to filter a listing page. Problem is that when third segment is empty I have no-results, where I was expecting a ...
5
votes
3answers
1k views

How do I display a category name based on a segment?

I'm trying to show the category_name of segment_3. If I use the variable {segment_3} it displays the short name, I want to show the Full name. Any suggestions? Thanks in advance.
2
votes
1answer
141 views

Limit entry using status and categories

I have a "featured item" part on my site that is controlled with a new status i created called "featured". I have 8 parent categories, and would like to have 8 different featured items, 1 unique for ...
1
vote
3answers
3k views

Remove segment from URL

I'd like to take any URL where segment_1 == "supernav" and remove that segment. So this: http://alpha.ced.berkeley.edu/supernav/gallery/ Would become this: http://alpha.ced.berkeley.edu/gallery/ ...
4
votes
3answers
998 views

Hide template_group segment in URL

I've seen this question in Google but the link ended up dead on the Ellislab page. I have a not too big site which resides all in one template group. Is it possible to remove the template group from ...
2
votes
1answer
130 views

Segments producing active class

I have a simple unordered list nav, it displays an active list item depending on segment_1. Within that unordered list I have another unordered list with a class of 'sub'. For some reason, all list ...

1
2