HLOOV TSHIAB (01/17/08): No nkag teb chaws hauv blog hais txog ntau hyperlink XSL siab zoo: http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/rewriting-links-in-search-results-xslt.
Txheej txheem cej luam thiab lub hom phiaj: Kuv tau tsim ib yooj yim bar daim ntawv kom tswj tivthaiv rau ib dashboard. Kuv yuav txuag kom paub meej txog tsev kab kos rau ib qho, tab sis, kuv tsis tau txua tus txheej txheem (los yog cov lus nug kos, rau qhov teeb meem ntawd). Nws muab tau ib kab nyob rau ntawm daim ntawv thiab thaum kuv tas uas muaj, Kuv muab lub hwj tsam los mus hloov tej daim ntawv lo rau hauv hyperlinks uas taw tes qhia rau lwm daim ntawv qab cov teeb. Piv txwv, muaj ib daim ntawv lo nrog tus nqi "Tuav". Kuv xav mus dhau los ntawm daim ntawv lo ua ib hyperlink kom tus neeg siv yuav tau nyem rau ntawm nws thiab tho coj mus rau kev nkag rau hauv daim ntawv uas tus nqi raws li txoj cai yog "Puag".
Ruam:
- Siv kev studio rau sharepoint-paub intellisense.
- Luam rau DVWP XSLT rau studio nrig txog kev pom (tsim ib qhov dawb paug project, ntxiv ib cov ntaub ntawv XSL rau peb tes num).
- Copy qhov link koj yuav siv tau rau hauv cov ntawv los teev cia.
- Paste rau hauv qhov chaw zoo nyob rau lub XSL.
- Hloov ua lwm yam URL cav separators rau cov lus nug txoj hlua ntawm"&" mus"&"
- Url-encode ib tug neeg lus.
- Muab qhwv rau ntawd hauv ib <ib tug href…> </ib tug>
Piv txwv:
Kuv muaj ib tug URL:
http://[neeg rau zaub mov]/[kawm ntawv]/Lists/Open Positions/AllItems.aspx?Pom ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&FilterValue1 = tuav
Kuv yuav hloov rau nws:
<ib tug href="Lists/Open Positions/AllItems.aspx?Pom = % 7b84EEA2F5-121B-40B7-946F-
0FA704A1DAA1 %7 d&FilterField1 = Recruiter&FilterValue1 = tuav"> Tuav: </ib tug>
Kuv manually transformed thawj sib cav los:
{84EEA2F5-121B-40B7-946F-0FA704A1DAA1}
mus:
%7b84EEA2F5-121B-40B7-946F-0FA704A1DAA1 %7 d
(Nyob rau hauv no, transforms brace qhib rau % 7b thiab kaw brace transforms mus %7 d)
Nqe lus thib ob thiab peb’ tsis ("FilterField1 =Recruiter" thiab "FilterValue1 =Tuav" feem) tsis xav url encoded vim lawv tsis muaj kev tsis zoo kev cim.
Sau ntawv:
Cov txheej txheem no yuav tsum tau feem ntau haujlwm nyob txhua qhov chaw uas koj xav kom ib tug hyperlink embed nyob qhov twg cov hyperlink muab tsis tau rau hauv qhov URL xws li XSLT:
http://[neeg rau zaub mov]/[kawm ntawv]/Lists/Open Positions/AllItems.aspx?Pom ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&FilterValue1 = tuav
Kuv tau txais qhov URL nws tus kheej ntawm tus txheejtxheem ntawm kev cai sau thiab manually filtering rau sab pej xeem Mes Kas (labeled "Recruiter" saum toj).
Pang, 84EE ntawd.. yog ib tug GUID uniquely kuas daim ntawv ntxiv hauv lawv. Koj yuav tau txais nws rub rov qab ua li qhov pom nyob rau hauv koj tus browser thiab xyuas(audits) qhov URL ntawm koj tus browser.
qhov twg los li cas Meskas cov txoj ' 84EEA2F5-121B-40B7-946F-0FA704A1DAA1′
Yuav tsum tau ua li no …&FilterField1 = Recruiter Center &FilterValue1 = tuav WIC / ASM?
Los sis
Kuv puas yuav tshem tau rau tej qhov chaw ntawm lawv?