Question
Hi - I have an edit icon inserted in my TABLE-formatted search results users can click to go directly into edit mode for a given topic:
<a href=%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/$topic><img src=%PUBURL%/%TWIKIWEB%/TWikiDocGraphics/edittopic.gif border=0 /></a>
That works fine for topics residing in that web, but not for topics residing in different webs. I tried something like the following to request a search across multiple specified webs for the specific topic title, but it breaks the query:
%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%METASEARCH{web="NetworkSystems Dweng"}%/$topic
Any ideas? My entire table/search string is reproduced below. Thanks in advance for any help or suggestions.
Chris Radcliff
%TABLE{cellspacing="2" tableborder="1" tablewidth="100%" columnwidths="2%,21%,21%,21%,10%,5%,5%,5%,5%,5%,5%" headerbg="#CCFFFF" databg="#FFFFFF" valign="top" dataalign="left" initsort="1"}%
| *Pri* | *Project/Description* | *Active Milestone* | *Issues* | *Staff*| *Start* | *End* | *100 Day* | *PLM?*| *CapEx?* | *Log ID* |
%SEARCH{ "[P]rojectName.*?value=.*?[^0-9a-zA-Z]?*[a-zA-Z]+;NetworkSystemsTeam.*?value="Data Warehouse"+;ProjectStatus.*?value=.*?Active" scope="text" regex="on" nototal="on" web="Dweng, NetworkSystems" order="formfield(ProjectPriority)" nosearch="on" casesensitive="on" excludetopic="ProjectTemplate" format="| $formfield(ProjectPriority) | [[$web.$topic][$formfield(ProjectName)]] $formfield(ProjectDescription) <a href=%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/$topic><img src=%PUBURL%/%TWIKIWEB%/TWikiDocGraphics/edittopic.gif border=0 /></a> | $formfield(ActiveMilestone) | $formfield(ProjectIssues) | $formfield(ProjectStaff) | $formfield(ProjectStartDate) | $formfield(ProjectDeliveryDate) | $formfield(OneHundredDay) | $formfield(SoxProjectTracking) | $formfield(CapEx) | $formfield(LoggerId) |"}%
Environment
--
ChrisRadcliff - 14 Mar 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Simply using
$web instead of
%WEB% should do the trick.
--
HaraldJoerg - 14 Mar 2008