Show last authors
1 {{velocity}}
2 ##
3 ## Tag application.
4 ##
5 ## - See a Tag Cloud of all tags within the wiki.
6 ## - See all the pages tagged with the given tag.
7 ## - Rename a tag.
8 ## - Delete a tag.
9 ##
10 $xwiki.ssx.use('Main.Tags')##
11 ##
12 ## Set application variables (action and tag) from URL parameters.
13 ##
14 #set ($do = "$!{request.get('do')}")
15 #set ($tag = "$!{request.get('tag')}")
16 #set ($urlEscapedTag = $escapetool.url($tag))
17 #set ($htmlEscapedTag = $escapetool.xml($tag))
18 ##
19 ## Macro displayTagAppTitle. Display level1 title of this app.
20 ##
21 #macro (displayTagAppTitle $urlEscapedTag $htmlEscapedTag $displayButtons)
22 (% class="xapp" %)
23 = (% class="highlight tag" %)${tag}##
24 #if ($xwiki.hasAdminRights() && $displayButtons) ##
25 [[$services.localization.render('xe.tag.rename.link')>>||queryString="do=prepareRename&tag=${urlEscapedTag}" class="button rename" rel="nofollow"]] [[$services.localization.render('xe.tag.delete.link')>>||queryString="do=prepareDelete&tag=${urlEscapedTag}" class="button delete" rel="nofollow"]]##
26 #end
27 (%%) =
28 #end
29 ##
30 ## Switch between all possible actions:
31 ## viewTag, prepareRename, rename, prepareDelete, delete, default (Tag cloud)
32 ##
33 #if ($do == 'viewTag')
34 ##
35 ## View tag
36 ##
37 #displayTagAppTitle($urlEscapedTag $htmlEscapedTag true)
38 #if ("$!{request.get('renamedTag')}" != '')
39 {{info}}$services.localization.render('xe.tag.rename.success', ["//${request.get('renamedTag')}//"]){{/info}}
40
41 #end
42 #set ($list = $xwiki.tag.getDocumentsWithTag($tag))
43 {{container layoutStyle="columns"}}
44 (((
45 (% class="xapp" %)
46 === $services.localization.render('xe.tag.alldocs', ["//${tag}//"]) ===
47
48 #if ($list.size()> 0)
49 {{html}}#displayDocumentList($list false $blacklistedSpaces){{/html}}
50 #else
51 (% class='noitems' %)$services.localization.render('xe.tag.notags')
52 #end
53 )))
54 (((
55 (% class="xapp" %)
56 === $services.localization.render('xe.tag.activity', ["//${tag}//"]) ===
57 {{notifications useUserPreferences="false" displayOwnEvents="true" tags="$tag" displayRSSLink="true" /}}
58 )))
59 {{/container}}
60 #elseif ($do == 'prepareRename')
61 ##
62 ## Prepare rename tag
63 ##
64 #displayTagAppTitle($urlEscapedTag $htmlEscapedTag false)
65 {{html}}
66 <form id="renameForm" action="$doc.getURL()" method="post">
67 <div>
68 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
69 <input name="do" type="hidden" value="renameTag" />
70 <input name="tag" type="hidden" value="$htmlEscapedTag" />
71 $services.localization.render('xe.tag.rename.renameto', [$htmlEscapedTag]) <input type="text" name="renameTo" /> <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.rename')" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">$services.localization.render('cancel')</a></span>
72 </div>
73 </form>
74 {{/html}}
75 #elseif ($do == 'renameTag')
76 ##
77 ## Rename tag
78 ##
79 #set ($renameTo = "$!{request.get('renameTo')}")
80 #set ($success = false)
81 #if ($renameTo != '')
82 #set ($success = $xwiki.tag.renameTag($tag, $renameTo))
83 #end
84 #if ($success == true || $success == 'OK')
85 #set ($urlEscapedRenameTo = $escapetool.url($renameTo))
86 $response.sendRedirect($doc.getURL('view', "do=viewTag&tag=${urlEscapedRenameTo}&renamedTag=${urlEscapedTag}"))
87 #else
88 {{error}}$services.localization.render('xe.tag.rename.failure', ["//${tag}//", "//${renameTo}//"]){{/error}}
89 #end
90 #elseif ($do == 'prepareDelete')
91 ##
92 ## Prepare delete tag
93 ##
94 #displayTagAppTitle($urlEscapedTag $htmlEscapedTag false)
95 {{html}}
96 <form id="deleteForm" action="$doc.getURL()" method="post">
97 <div>
98 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
99 <input name="do" type="hidden" value="deleteTag" />
100 <input name="tag" type="hidden" value="$htmlEscapedTag" />
101 <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.delete', [$htmlEscapedTag])" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">$services.localization.render('cancel')</a></span>
102 </div>
103 </form>
104 {{/html}}
105 #elseif ($do == 'deleteTag')
106 ##
107 ## Delete tag
108 ##
109 #set ($success = $xwiki.tag.deleteTag($tag))
110 #if ($success == true || $success == 'OK')
111 $response.sendRedirect($doc.getURL('view', "deletedTag=${urlEscapedTag}"))
112 #else
113 {{error}}$services.localization.render('xe.tag.delete.failure', ["//${tag}//"]){{/error}}
114 #end
115 #else
116 ##
117 ## View all tags (Tag Cloud)
118 ##
119 #set ($title = 'All Tags')
120 #if ("$!{request.get('deletedTag')}" != '')
121 {{info}}$services.localization.render('xe.tag.delete.success', ["//${request.get('deletedTag')}//"]){{/info}}
122
123 #end
124 {{tagcloud/}}
125 #end
126 #set ($displayDocExtra = false)
127 {{/velocity}}

Become a Contributor

If you follow a company closely and would like to share your knowledge, we would love your contributions. Register Now and start editing!

Tag Cloud

  1. AU:BHP
  2. AU:DTL
  3. AU:PNC
  4. AU:SSR
  5. Bangladesh
  6. BD:ACI
  7. BD:AMCL(PRAN)
  8. BD:BATBC
  9. BD:BERGERPBL
  10. BD:BEXIMCO
  11. BD:BRACBANK
  12. BD:BSRMLTD
  13. BD:GP
  14. BD:KOHINOOR
  15. BD:LANKABAFIN
  16. BD:MARICO
  17. BD:PREMIERCEM
  18. BD:RBBL
  19. BD:RENATA
  20. BD:ROBI
  21. BD:SINGERBD
  22. BD:SQURPHARMA
  23. BD:WALTONHIL
  24. CA:ABX
  25. CA:AC
  26. CA:AEM
  27. CA:AFI
  28. CA:AGI
  29. CA:AQN
  30. CA:BAM.A
  31. CA:BCE
  32. CA:BHC
  33. CA:BLDP
  34. CA:BMO
  35. CA:BNS
  36. CA:BTO
  37. CA:CCO
  38. CA:CM
  39. CA:CNQ
  40. CA:CNR.TO
  41. CA:CP
  42. CA:CSU
  43. CA:CU
  44. CA:CVE
  45. CA:EMA
  46. CA:ENB
  47. CA:FFH
  48. CA:FM
  49. CA:FSV
  50. CA:FTS
  51. CA:GFL
  52. CA:GIB
  53. CA:GWO
  54. CA:H
  55. CA:IFC
  56. CA:IMO
  57. CA:K
  58. CA:LULU
  59. CA:MFC
  60. CA:MG
  61. CA:MRU
  62. CA:MX
  63. CA:NA
  64. CA:NG
  65. CA:NTR
  66. CA:OTEX
  67. CA:POW
  68. CA:PPL
  69. CA:PVG
  70. CA:QSR
  71. CA:RBA
  72. CA:RCI.A
  73. CA:RY
  74. CA:SHOP
  75. CA:SJR.B
  76. CA:SLF
  77. CA:SSRM
  78. CA:STN
  79. CA:SU
  80. CA:T
  81. CA:TA
  82. CA:TARD
  83. CA:TD
  84. CA:TECK
  85. CA:TFII
  86. CA:TRI
  87. CA:TRP
  88. CA:WEED
  89. CA:WN
  90. CA:WPM
  91. CA:WSP
  92. CA:X
  93. CA:YRI
  94. Canada
  95. CH:ALSN
  96. CH:NESN
  97. CIPLA
  98. DE:TIMA
  99. EU:CCAP
  100. EU:HHFA
  101. FR:CEN
  102. FR:HCO
  103. GB:AAL
  104. GB:ABDN
  105. GB:ABF
  106. GB:ADM
  107. GB:AHT
  108. GB:ANTO
  109. GB:AUTO
  110. GB:AUY
  111. GB:AV
  112. GB:AVST
  113. GB:AVV
  114. GB:AZN
  115. GB:BA
  116. GB:BARC
  117. GB:BATS
  118. GB:BDEV
  119. GB:BHP
  120. GB:BME
  121. GB:BP
  122. GB:CCH
  123. GB:CPG
  124. GB:CTO
  125. GB:DARK
  126. GB:DGE
  127. GB:FERG
  128. GB:GLEN
  129. GB:HL
  130. GB:HSBA
  131. GB:IHG
  132. GB:III
  133. GB:IMB
  134. GB:INCH
  135. GB:NWG
  136. GB:NXR
  137. GB:OCDO
  138. GB:REL
  139. GB:RIO
  140. GB:RKT
  141. GB:SGE
  142. GB:SGRO
  143. GB:SKG
  144. GB:SMIN
  145. GB:SN
  146. GB:STAN
  147. GB:STJ
  148. GB:WPP
  149. Great Britain
  150. HK:0995
  151. HK:1052
  152. HK:107
  153. HK:189
  154. HK:548
  155. HK:819
  156. HK:995
  157. IN:3MINDIA
  158. IN:ADANITRANS
  159. IN:BHARATFORG
  160. IN:CIPLA
  161. IN:CROMPTON
  162. IN:GODREJIND
  163. IN:HDFCAMC
  164. IN:IDEA
  165. IN:INDUSTOWER
  166. IN:LICI
  167. IN:LUPIN
  168. IN:LUPINE
  169. IN:MFSL
  170. IN:MOFSL
  171. IN:MOTHERSUMI
  172. IN:MUTHOOTFIN
  173. IN:NATCOPHARM
  174. IN:NATIONALUM
  175. IN:NBCC
  176. IN:NESTLEIND
  177. IN:NIACL
  178. IN:NMDC
  179. IN:OBEROIRLTY
  180. IN:OFSS
  181. IN:PAGEIND
  182. IN:PAYTM
  183. IN:PEL
  184. IN:PETRONET
  185. IN:PFIZER
  186. IN:PGHH
  187. IN:PIDILITIND
  188. IN:PIIND
  189. IN:PNB
  190. IN:PNBHOUSING
  191. IN:POWERGRID
  192. IN:QUESS
  193. IN:RAMCOCEM
  194. IN:RELAXO
  195. IN:SAIL
  196. IN:SANOFI
  197. IN:SBILIFE
  198. IN:SIEMENS
  199. IN:SRF
  200. IN:SUPREMEIND
  201. IN:TATAPOWER
  202. IN:TECHM
  203. IN:TITAN
  204. IN:TORNTPHARM
  205. IN:TORNTPOWER
  206. IN:TRENT
  207. IN:TVSMOTOR
  208. IN:UBL
  209. IN:ULTRACEMCO
  210. IN:UNIONBANK
  211. IN:UPL
  212. IN:VBL
  213. IN:WHIRLPOOL
  214. IN:ZEEL
  215. India
  216. Ireland
  217. JP:1070
  218. JP:2654
  219. JP:4220
  220. JP:4734
  221. JP:6916
  222. SG:BCY
  223. SG:F13
  224. UK:IHG
  225. US:AABA
  226. US:AAOI
  227. US:AAPL
  228. US:AAUKF
  229. US:ABEO
  230. US:ABUS
  231. US:ACAD
  232. US:ACAN
  233. US:ACBFF
  234. US:ACDVF
  235. US:ACHN
  236. US:ACIA
  237. US:ACRX
  238. US:ADAP
  239. US:ADMP
  240. US:ADMS
  241. US:ADXS
  242. US:AEM
  243. US:AEZS
  244. US:AFMD
  245. US:AGEN
  246. US:AGI
  247. US:AGRX
  248. US:AGTK
  249. US:AKAO
  250. US:ALDR
  251. US:ALIM
  252. US:ALQA
  253. US:AMC
  254. US:AMD
  255. US:AMDA
  256. US:AMIGF
  257. US:AMMJ
  258. US:AMN
  259. US:AMPE
  260. US:AMRN
  261. US:AMRS
  262. US:AMZN
  263. US:ANCUF
  264. US:ANFGF
  265. US:ANLDF
  266. US:ANTH
  267. US:ANY
  268. US:APHQF
  269. US:AQMS
  270. US:AQN
  271. US:AQSZF
  272. US:ARDX
  273. US:ARGS
  274. US:ARLZ
  275. US:ARNA
  276. US:ARRY
  277. US:ARWR
  278. US:ASBFF
  279. US:ASHTF
  280. US:ATDRY
  281. US:ATHX
  282. US:ATNM
  283. US:ATOS
  284. US:ATRS
  285. US:AUPH
  286. US:AUY
  287. US:AVASF
  288. US:AVEO
  289. US:AVEVF
  290. US:AVGR
  291. US:AVIR
  292. US:AVP
  293. US:AVVIY
  294. US:AVXL
  295. US:AXON
  296. US:AXSM
  297. US:AZN
  298. US:BABA
  299. US:BAC
  300. US:BAESF
  301. US:BAM
  302. US:BBRY
  303. US:BCE
  304. US:BCOR
  305. US:BCS
  306. US:BHP
  307. US:BIOA
  308. US:BIOC
  309. US:BLCM
  310. US:BLDP
  311. US:BLEVF
  312. US:BLOZF
  313. US:BLPH
  314. US:BLRX
  315. US:BMO
  316. US:BMRPF
  317. US:BNS
  318. US:BP
  319. US:BPMX
  320. US:BSTG
  321. US:BTDPF
  322. US:BTE
  323. US:BTG
  324. US:BTI
  325. US:BW
  326. US:BZUN
  327. US:CALA
  328. US:CANN
  329. US:CAPR
  330. US:CARA
  331. US:CASC
  332. US:CATB
  333. US:CBDS
  334. US:CCJ
  335. US:CEI
  336. US:CERC
  337. US:CERU
  338. US:CHK
  339. US:CIE
  340. US:CLDX
  341. US:CLF
  342. US:CLOV
  343. US:CLSN
  344. US:CLVS
  345. US:CM
  346. US:CMPGF
  347. US:CNAB
  348. US:CNAT
  349. US:CNBX
  350. US:CNI
  351. US:CNQ
  352. US:CNSWF
  353. US:CORT
  354. US:CP
  355. US:CPRX
  356. US:CRBP
  357. US:CRIS
  358. US:CRMD
  359. US:CTRV
  360. US:CU
  361. US:CUR
  362. US:CVE
  363. US:CVSI
  364. US:CYCC
  365. US:CYTR
  366. US:CYTX
  367. US:DCTH
  368. US:DEPO
  369. US:DGEAF
  370. US:DMPI
  371. US:DRKTF
  372. US:DRYS
  373. US:DVAX
  374. US:DXTR
  375. US:DYLLF
  376. US:EARS
  377. US:ECYT
  378. US:EDIT
  379. US:EGLT
  380. US:EKSO
  381. US:ELVT
  382. US:ENB
  383. US:ENDP
  384. US:ENRT
  385. US:ETRM
  386. US:EVC
  387. US:EXEL
  388. US:FATE
  389. US:FB
  390. US:FERG
  391. US:FINL
  392. US:FIT
  393. US:FLXN
  394. US:FOLD
  395. US:FQVLF
  396. US:FRFHF
  397. US:FSV
  398. US:FTR
  399. US:FTS
  400. US:FVE
  401. US:FWDG
  402. US:GALE
  403. US:GALT
  404. US:GBHPF
  405. US:GBT
  406. US:GERN
  407. US:GFL
  408. US:GIB
  409. US:GILD
  410. US:GLDFF
  411. US:GLEN
  412. US:GLYC
  413. US:GME
  414. US:GNCA
  415. US:GNMX
  416. US:GOLD
  417. US:GPRO
  418. US:GSAT
  419. US:GVXXF
  420. US:GWLIFU
  421. US:HLTH
  422. US:HMNY
  423. US:HRGLF
  424. US:HRNNF
  425. US:HRTX
  426. US:HSBA
  427. US:HTGM
  428. US:HTZ
  429. US:HUSA
  430. US:ICPT
  431. US:IDRA
  432. US:IDXG
  433. US:IFCZF
  434. US:IHG
  435. US:IMBBF
  436. US:IMGN
  437. US:IMMU
  438. US:IMNP
  439. US:IMO
  440. US:IMUC
  441. US:INFI
  442. US:INPX
  443. US:INSM
  444. US:INVA
  445. US:ITEK
  446. US:IVITF
  447. US:JD
  448. US:JOBS
  449. US:JVA
  450. US:KAYS
  451. US:KEM
  452. US:KERX
  453. US:KGC
  454. US:KTOS
  455. US:KTOV
  456. US:LKM
  457. US:LODE
  458. US:LPCN
  459. US:LULU
  460. US:LXRP
  461. US:MACK
  462. US:MARA
  463. US:MBOT
  464. US:MBRX
  465. US:MDCL
  466. US:MDCO
  467. US:MEET
  468. US:MEIP
  469. US:MEOH
  470. US:MFC
  471. US:MGA
  472. US:MGWFF
  473. US:MNKD
  474. US:MOMO
  475. US:MQPXF
  476. US:MRNS
  477. US:MRTX
  478. US:MSFT
  479. US:MTRAFU
  480. US:MU
  481. US:MVIS
  482. US:MZOR
  483. US:NAK
  484. US:NBEV
  485. US:NBRV
  486. US:NEOS
  487. US:NG
  488. US:NH
  489. US:NLNK
  490. US:NMUS
  491. US:NTIOF
  492. US:NTNX
  493. US:NTR
  494. US:NVAX
  495. US:NVCN
  496. US:NVDA
  497. US:NVRO
  498. US:NWBO
  499. US:NWG
  500. US:NXTTF
  501. US:NYMX
  502. US:OCDGF
  503. US:OCLR
  504. US:OCUL
  505. US:OGRMF
  506. US:OMER
  507. US:ONCS
  508. US:ONTX
  509. US:ONVO
  510. US:OPGN
  511. US:OPHT
  512. US:OPK
  513. US:OPTT
  514. US:OTEX
  515. US:OTIC
  516. US:P
  517. US:PANXF
  518. US:PBA
  519. US:PBYI
  520. US:PETS
  521. US:PETX
  522. US:PGNX
  523. US:PHOT
  524. US:PIRS
  525. US:PLSE
  526. US:PLUG
  527. US:PLX
  528. US:PRTO
  529. US:PSDV
  530. US:PTI
  531. US:PTN
  532. US:PTX
  533. US:PUFXF
  534. US:PULM
  535. US:PVG
  536. US:QRSRF
  537. US:QSR
  538. US:RAD
  539. US:RBA
  540. US:RBGPF
  541. US:RCI
  542. US:RCKT
  543. US:RDHL
  544. US:RDUS
  545. US:RELX
  546. US:REPH
  547. US:RGLS
  548. US:RIGL
  549. US:RIO
  550. US:RNN
  551. US:RNVA
  552. US:ROX
  553. US:RSSFF
  554. US:RTTR
  555. US:RY
  556. US:SCYX
  557. US:SDRL
  558. US:SEGXF
  559. US:SENS
  560. US:SESN
  561. US:SGBY
  562. US:SGGEF
  563. US:SGMO
  564. US:SGYP
  565. US:SHOP
  566. US:SJR
  567. US:SKLN
  568. US:SLF
  569. US:SLFPF
  570. US:SMFTF
  571. US:SMGKF
  572. US:SNAP
  573. US:SNN
  574. US:SPHS
  575. US:SPLIF
  576. US:SPRWF
  577. US:SQ
  578. US:SRNA
  579. US:SRNE
  580. US:SRRA
  581. US:SSRM
  582. US:STJPF
  583. US:STLY
  584. US:STML
  585. US:STMP
  586. US:STN
  587. US:STRRF
  588. US:SU
  589. US:SWN
  590. US:SYN
  591. US:TAC
  592. US:TBQBF
  593. US:TD
  594. US:TECK
  595. US:TENX
  596. US:TEVA
  597. US:TFII
  598. US:TGOPF
  599. US:TGTX
  600. US:THCBF
  601. US:TK
  602. US:TMXXF
  603. US:TNDM
  604. US:TOP
  605. US:TRI
  606. US:TROV
  607. US:TRP
  608. US:TRTC
  609. US:TRVN
  610. US:TRXC
  611. US:TSG
  612. US:TSLA
  613. US:TTM
  614. US:TTNP
  615. US:TTNQY
  616. US:TU
  617. US:TVTY
  618. US:TWTR
  619. US:TXMD
  620. US:UBQU
  621. US:UNXL
  622. US:VAPE
  623. US:VBLT
  624. US:VCEL
  625. US:VDQSF
  626. US:VPCO
  627. US:VSTM
  628. US:WIT
  629. US:WLDFF
  630. US:WLL
  631. US:WMIH
  632. US:WMT
  633. US:WPM
  634. US:WPP
  635. US:WSPOF
  636. US:XGTI
  637. US:XON
  638. US:XTNT
  639. US:XXII
  640. US:ZGNX
  641. US:ZSAN
  642. US:ZYNE
This site is funded and maintained by Fintel.io