How to to reuse content between two DITA maps and keep the folder structure - dita

I am using Oxygen XML Author and I have two maps that have a lot of similar content. Right now, the content is not reused, but it would be great to make it reusable. The maps are called InstallGuide.ditamap and AdminGuide.ditamap they are stored on the disk with the following hierarchy:
common/
InstallGuide.ditamap
Product/
ProductFeatures/
MainProduct/
AdminGuide.ditamap
Is there a way to put a new parent map to disk root and include my other two maps in it and make content reusable? Right now if I try, the maps are included, but only as non-editable references so I can't set up any reuse and can't set profiling attributes.
Why do I need profiling?
Since the maps are two different documents I want to be able to profile them from the parent map. But I want to also be able to reuse content from one map to another. Moreover, I would want to keep the folder structure unchanged. Is that possible?
I can't get my head around the solution for my "wants". Maybe someone can propose a better way to achieve the goal, I would appreciate that.

Related

Is there any way to manage the shape templates other then the default location (Such as placing them inside sub-folders)?

I'm developing an Orchard Core site and would like to place the shape templates into some sort of folder structure, if possible?
See example from tutorial:
So would it be possible to place the ColorField shape templates into a ColorField folder and the PersonPart shape templates into a PersonPart folder?
Not a direct answer to your question, but I was having problems getting Razor pages in a ~/Views/Shared folder to display as a shape.
JTKech replied here to me https://github.com/OrchardCMS/OrchardCore/issues/6376?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDkyNDcxMjQ2NDo3MjcwNjE%3D#issuecomment-640995088. Basically, OC looks at certain folders ("Views", "Views/Items", "Views/Parts", "Views/Fields", "Views/Elements") to display shapes.
That being said, there was a way in O1 to change what folders were searched, and I believe there is such a way in OC but haven't been able to find it.
In the end, you may want to place Color Field and PersonPart into ~/Views/Parts until you find a better solution to suit your needs.
Another option is to create a Theme and place those files within a similar structure there. I tend to do this with front-end views, keeping the Admin/Edit pages in my module. But there's nothing to stop you from doing them either way. Good luck.

internal links in Lektor's markdown blocks

I want to build a website, maybe similar to a movie database, where every page has, say, actors, director, year (it seems that Lektor can deal very well with such structured metadata), and I am thinking about how to realize internal links between pages on that site.
Say I have a text such as
just like in [his previous movie](link), he shows again ...
then I guess I could use the absolute path of the linked page as link target, but that makes me very inflexible with respect to changing URL structure. Can I somehow just use the ID of the target content?
Or, better yet, can I somehow automatically obtain the title of the linked page?
just like in his previous movie <<link:title>>, he shows again ...
Can I use the standard Markdown blocks for that or would I have to add some handcrafted database lookup logic?
if some contents will be changed in future. I think you can use the databag feature to implement it. you just modify the databg in case changed is need.

Why is it ok to use the view's logical name in PRISM View-based Navigation?

So I'm a complete newbie to PRISM and just trying to get my head around all the concepts, one of which is Navigation. I have separated all my views into separate modules (along with their vm's) and now I need to be able to switch between them.
Apparently I need to use RegionManager.RequestNavigate and pass in the view's logical name. I'm just wondering how this is meant to be decoupled as the modules now know about each other (even if just it's just by name). So if I decide to make a change or use the module in another project it's not going to work anymore.
Unless I've totally misunderstood this.
I think the idea is that while you must have a view name to navigate with, that is all that needs to be known. So if I have 'StockViewer' as a view, I could drop any 'StockViewer' module in, and the other applications would be none the wiser that they are at all different.
For me, I basically created a NameService of sorts, that I can call and have an object representation of names, so I don't fat-finger a name and spend hours trying to troubleshoot why something didn't load.

creating interface for adding n number of products to a category using umbraco

I know this question has been asked many times i went through all of them but couldn't find the right solution hence writing my problem here may be again...
I want to create CMS for category-Products solution..i think the name itself is quite explanatory..
Every category can have n number of products in to it.
but i couldnt get how can i do this via umbraco.
i know, i can access child not via inline razor macro but how to access child node contents ...or may be some other right way!!
Please dont give me links to Run away modules..i have already visited them ...and could understand very little...
Any suggestion will be helpful.
Create (if you haven't already) two different document types; one called Category, the other called Product. (You'll also want to add the appropriate properties.) In the Structure tab of Category, be sure to allow Product (and don't forget to allow Category under whatever type it will live). From here, you should be able to create Category nodes, and then beneath each of them, Product nodes.

Two very similar apps, with different texts and UI graphics

I'm going to developer two very similar apps, the logic is absolutely the same, but api calls base URLs, texts and UI graphics( such as backgrounds etc) will be different, but the all views will be the same (buttons, labels in the same places). It's quizes apps.
How to do it in the smart way? To not duplicate code etc.
I thought about to setup workspace, add bundles with UI, plists with texts and URL's, and than based on project name or identifier use one of the bundles, etc.
Maybe somebody can share smth else? More efficient way.
Thx.
I thought about [...] adding bundles with UI, plists texts and URL's
You wrote your own answer. Additionally you setup two targets. One for each project. Within the target you define an envorinment variable, which you can use in your code to switch between the bundles / URLs.
You should write a Helper Class to get the Ressources. That helper class checks the environment variable and gives back the correct ressource.
(You may want to write categories for UIImage and NSURL and write your own NSLocalizedString version. With that you don't need to check any conditions/settings anywhere else in your code.)