Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Guru 'Geezer' Mechanic
Picture of larryd
Posted
I have a piece of php code that needs to be included on every page. The output of this code will be controlled by CSS by referencing either the object or geometry id name.

When the code object (or geometry) is given a specific name, I find that when it is included/cloned/copied on another page, the given name is changed. This will break my CSS code, which is looking for the given id name. My only option is to rewrite the CSS code for every page, or include a <span id='...'> tag in the object (not possible with an image object).

I can see the reason to keep the object & geometry name unique per page, but the name should be reusable across pages in a project.
 
Posts: 5067 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Harpo
Posted Hide Post
Hi Larry,

If you 'include' an object it should retain the same object and geometry name. A cloned object should retain the same geometry name but not the object name. Are you not seeing that?
 
Posts: 3209 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
Harpo,

You are correct. Using the Include option does use the same object/geometry name.

What I was doing was a page copy & paste as the code objects (there are several) comprised a template page.

What I found is not very intuitive: If I select all objects, then open the Object Editor->Components tab, I can use the "Page Copy Method" and set it to Include. This sets it for all objects instead of having to do it one object at a time. It would be nice if this feature were elevated to a page menu.
 
Posts: 5067 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.