Dokuwiki Mediamanager attach file to a certain page - media

I've the namespace structure root:foo with the page root:foo:bar. I'd like to attach a pdf document to the page root:foo:bar but when I open the media manager it just lets me choose the namespace foo.
Is there a way to attach a document to a certain page or can I just attach them to parent namespaces?

Media files are always stored in a namespace. The media manager opens in the namespace of the page. But you can prefix your media file name with arbitrary sub namespaces. Eg. when your media manager opens in foo: you can name your file bar:doc.pdf and it will be uploaded as foo:bar:doc.pdf creating a new namespace foo:bar:.

Related

In Xamarin can we have own name and location for google-services.json ? Can we change the content of file dynamically after application installed?

I wanted to have my own name for google.services.json file and also some custom location inside my application.
And when we launch the application, I want to load the content of file from api. Is it possible to override the content of the file or not?

CKEditor - pass existing image path to file browser

I am using the latest CKEditor (4.9.2). I have integrated it successfully with a file browser (DevExpress) and everything works fine.
I use an initial upload path, common for both files and images. This directory has a quite large and complex structure (usually up to 6-7 levels). If the user wants to replace an existing image or file the file browser opens and he has to open six or seven folders in order to get to the folder that the new image is stored. Usually, the images the users replace are stored in the same folder with the one they are replacing. In my opinion, that should be the default behavior. If I select to see an existing image’s properties and then I hit the “Browse Server” button, to have the file browser to open in the folder the image resides.
Is there any way to pass the current image path, in the image url field, to the file manager? In that case with a little parsing I can set the file browser’s initial path to the same folder the existing image is stored.
Is that possible? I imagine that we must first get the image path from the image URL field and alter the “Browse Server” button’s code to pass it as a url parameter to the file browser.
This is a bit 'hackish', but inside your file manager, you can use this to get the existing value of URL field:
window.opener.CKEDITOR.document.$.getElementsByClassName('cke_dialog_image_url')[0].querySelector('input').value
cke_dialog_image_url is the CSS classname of the table that has the URL input field.

Add custom attributes to folder, currentFolder, or files in CKFinder

We are developing a custom connector since we have to integrate CKEditor and CKFinder into our CMS (PeopleSoft). Since the CMS doesn't fully conform with normal file system regarding paths (i.e. /root/folder/file.fil), we would like to add a custom attribute to the folder object in the json response. For example, we would like to add the attribute contentid to each folders to identify each folder especially that it's possible to have the same folder/file name inside a folder. Then we would want to append that attribute when commands such as GetFolders and GetFiles so that we can use it for identifying the correct parent folder.

How to source images from my storage to NetSuite without uploading them to the file cabinet?

In order to place images in the web store, they have to be uploaded to the file cabinet and then the file name needs to be associated with the item.
What I am looking to do, is to source the images from my current internal storage to NetSuite and still be able to view the images on the website. I am trying to find a way to do this because I don't want to have to upload them all individually or with a mass upload.
You will need to create a custom item field of type "text" and associate the field to the item record.
You can then place the full path to your image in the field you just created and reference the custom field in your templates.
This will allow you to use urls from your own host, but dynamically be able to use them within the NetSuite web store.

Does Magento loads every xml file from the layout folder?

When calling $this->loadLayout() in your controller, does Magento fetches all of the xml files from the layout folders in the current design package?
I am trying to figure out how the customer login form pulls out the template from:
persistent/customer/form/login.phtml, is it because there is only a layout file: persistent.xml present?
EDIT:
I figured it out I didn't see there is a new module in 1.6.1.0 and also there are changes in model resource names
The customer login form pulls in because of the template or code block type referenced in that block's XML tag (in persistent.xml).

Resources