Live data: edit button shall open in wiki editor

Hi.

I have a page with some live data. When I use the edit button it will always open with the wysiwyg editor (even if I set wiki to my default editor - what I don’t have usually). Is there a possibility to tell the edit buttons to use the wiki editor?

Bonus question: is there a possibility to include all hidden pages in the live data even when I don’t have “seeing hidden pages” activated?

Regards, SImpel

Hello,

See:

Yes by using a filter, see “queryFilters” and the hidden one at https://extensions.xwiki.org/xwiki/bin/view/Extension/Live%20Data%20Macro/#HParameters-1

Hope it helps

I have this code:

{{liveData
  id="test"
  source='liveTable'
  properties='doc.title,doc.author,doc.creationDate,doc.date,_actions'
  sort="doc.creationDate:desc"
  limit="100"
  queryFilters="hidden=true"
}}{
  "meta": {
    "propertyDescriptors": [
      { "id": "doc.title",
        "displayer": {"doc.title": "link", "html": true} },
      { "id": "doc.author",
        "displayer": {"doc.author": "link", "html": true} }
    ]
  }
}{{/liveData}}

And there is no change when I try one of these:

hidden:1
hidden:0
hidden:true
hidden:false
hidden=1
hidden=0
hidden=true
hidden=false

I’m not sure what syntax is needed here.

About the editor: as I tried to write I want to use the wysiwyg editor on all other places, but not on that page with the livedata. But your first link you provided me made me recognize this:

If the Page is displayed by a Sheet (e.g., has an associated Object with a Sheet), then the Page is edited with the Inline form editor.

It is displayed by a sheet but I’m not interested in seeing the inline form editor. I want to edit the pure wiki content in the wiki editor. Can I do something on the sheet to force that?

Just: queryFilters="currentlanguage".

The docs says:

queryFilters (default value: currentlanguage,hidden)

That means that if you don’t specify anything, what is used is: queryFilters="currentlanguage,hidden".

And what it does is:

with those filters, the content is translated to the locale of the user and hidden pages are only displayed when Display hidden pages is set to Yes in the user preferences

So you just need to remove the hidden filter.

You cannot control that. It’s the user who decides what editor he/she wants to use.

If your page has an object which has a sheet binding then it’s going to be used. You can either:

  1. Remove that sheet binding
  2. Add a new Document Sheet Binding xobject with an empty value, see https://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet%20Module#HDocumentsheets

It’s not working with our 17.4.4 wiki. I clearly see a huge difference in the page count when toggeling with x+x+x+h.

I’ve checked, and that’s because you’re not following the syntax properly :slight_smile:

The format is: sourceParameter="...".

So in your case, it’s: sourceParameters="queryFilters='currentlanguage'"

1 Like