User Tools

Site Tools


macros:example:pagenamestolegends

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:pagenamestolegends [2024/08/09 14:04] icke_siegenmacros:example:pagenamestolegends [2024/08/09 19:52] (current) – [Code] icke_siegen
Line 5: Line 5:
 ^ by: | Sebastian Beutel | ^ by: | Sebastian Beutel |
 ^ published: | May 2024 | ^ published: | May 2024 |
-^ description:sore cues with current pagenames as legends |+^ description:store cues with current pagenames as legends |
 ^ remarks: | This records some cues into the Macros window and sets their legends to the current pages legends of some windows.\\ Page legends are not available through WebAPI. In order to get these legends:\\ - deploy this macro\\ - recall it from WebAPI  http://localhost:4431/titan/script/2/UserMacros/RecallMacroById?macroId=Wiki.Macros.Test.PageName\\ - get handles JSON http://localhost:4431/titan/handles/Macros\\ - parse the answer for the numbers/legends you are after | ^ remarks: | This records some cues into the Macros window and sets their legends to the current pages legends of some windows.\\ Page legends are not available through WebAPI. In order to get these legends:\\ - deploy this macro\\ - recall it from WebAPI  http://localhost:4431/titan/script/2/UserMacros/RecallMacroById?macroId=Wiki.Macros.Test.PageName\\ - get handles JSON http://localhost:4431/titan/handles/Macros\\ - parse the answer for the numbers/legends you are after |
  
Line 32: Line 32:
    
 ===== Code ===== ===== Code =====
-<code xml filename.xml>+<code xml [enable_line_numbers="true"] pagename.xml>
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
 <avolites.macros> <avolites.macros>
Line 85: Line 85:
  
   - [[:macros:deploying|make this macro available]]   - [[:macros:deploying|make this macro available]]
- +  - recall it from WebAPI  http://localhost:4431/titan/script/2/UserMacros/RecallMacroById?macroId=Wiki.Macros.Test.PageName 
-tbd+  - get handles JSON http://localhost:4431/titan/handles/Macros 
 +  - parse the answer for the numbers/legends you are after
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/pagenamestolegends.1723212292.txt.gz · Last modified: 2024/08/09 14:04 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki