ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

placing a variable inside a custom tag

May 19, 2008 2:01pm

Subscribe [2]
  • #1 / May 19, 2008 2:01pm

    Silencio

    46 posts

    What do you think the best solution would be to place a php variable inside of an exp tag?

    I have been trying many ways with no luck… which is making me re-think the site map.

    I’m building a site that has multiple weblogs for each department of a business. I would have used categories but many people within each department need to access their department weblog and I couldn’t find a way to allow members to view entries based on categories within the cp… so I opted to give each department it’s own weblog.

    I am currently getting hung up on the template that displays each entry individually. I am using custom weblog fields, and since I’m also using the Multi-Relationship plugin… I need to give each weblog it’s own weblog field with a unique name. The unique name is the variable that I am having trouble with. It will print out correctly on the page, it just won’t work within a tag.

    Has anyone had a similar situation and know of a solution?

  • #2 / May 19, 2008 2:05pm

    Andy Harris

    958 posts

    I do know that if you go to edit, then filter by weblog, that should dynamically change the filter by category (based on your choice of weblog). So you should be able to view entries based on categories right out of the box.

  • #3 / May 19, 2008 2:17pm

    Silencio

    46 posts

    I’m concerned with leaving it up to the user because departments could accidentally edit each other’s entries.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases