How can I check to see if a component exists in Mura CMS? - coldfusion

I need to be able to look for a component, by name, inside of a site, but I've not been able to find documentation that shows me how to do that. How can I accomplish this?

Related

is there a way to provide custom names for my drf-yasg endpoints?

i am implementing an API using django-rest-framework and using drf-yasg to document and name my endpoints
every post method ends with create
i tried searching through the documentation and i cant find a way to do it
As someone mentioned in the comment, you should use the #swagger_auto_schema() decorator for your API in order to customize it. then set operation_id to change its name in swagger docs.
here is an exact example that'll solve your problem:
drf-yasg: How to change operationId?

How to let user create a page via a URL?

I am thinking along the lines of /mysite/blogs/new. I know about add_child and about Routablepage, also the 'permissions route' but I still don't see how to permit page creation via a URL.
I am surprised that there do not appear to be any instructions for doing this, as relying on the admin method surely isn't acceptable for many 'naive' users. Indeed, it took me a while to realise that Wagtail isn't like Wordpress, in the sense of having an 'Add Post' button or the like.
The documentation does not clearly state that users are (apparently) expected to create pages via the Admin section either. In fact, there seems to be an assumption that developers will be familiar with Django, even though a CMS ought to be easier to use IMO.
Just to be clear, I think that Wagtail is great but the instructions leave something to be desired. Perhaps I will attempt to update them myself!
If you have the Edit Bird/Userbar enabled, then it presents a button to add a child page at any point in the page tree so long as you have permission to add one there. If you wish to give naïve users this option then you could make their permissions fairly restrictive, so that they only see this option at certain locations, and they don't see any of the other 'settings' areas of the Admin.
The admin page for adding this does have its own URL: it typically looks like http://www.example.com/admin/pages/13/add_subpage/, where 13 is the ID of the current page. If instead you want to present that link yourself, you can manually add the link in the template as
Add a child page
but first you should ensure that the user has the relevant permission. This is best done in Python, rather than in the template. See https://github.com/wagtail/wagtail/blob/master/wagtail/wagtailadmin/userbar.py for how Wagtail does this.
To get closer to your original request, you could combine all the above with RoutablePageMixin, by creating a route 'add' which redirects to the same URL:
#route(r'^add$')
def add_child_page(self, request):
return redirect(reverse('wagtailadmin_pages:add_subpage', args=[self.pk]))

Site search with options while searching

I'd like to create a search on my site like dividata.com has. That means, it only searches by stock symbol and stock name and users may select something only if there exists a record of it? How can I do that? Can you point me to an article or something where I may find information how to do it?
I'm using django on openshift. I looked at haystack and elastic search, but it looks like integration of elasticsearch on openshift won't be that easy. But I think I don't need something as complex as elasticsearch. Thanks.
Maybe this can help if you are looking for autocomplete search bar, I've solved that but I have problem with something else.
Django-haystack full text search working but facets don't

Magento how to make my own admin based custom template?

I am newbie to the magento. I want to develop my own custom template in magento. Where I would like to have some custom settings from admin panel to change the looks of the theme like change colour or to upload logo etc.. So can someone kindly tell me is there any documentation available or any referenced link? Any help and suggestions will be really appreciable.
Have a look at this link http://www.silksoftware.com/magento-module-creator
Near the bottom you have the Magento System Configuration section, with this you can create a module to handle all your admin settings for your entire site. This is by far the best way to learn how to setup modules, especially complicated ones that involve admin settings.
There will however be plugins for what you want so check on Magento connect first, and there are some free themes for older Magento installs that include similar custom plugins for customizing the themes you can use as a potential reference if you can dig them up (sorry I don't have any examples to hand as I used bought themes to learn from).

its possible to display different categories from another site?

Im working a newspaper, and I was wondering if its possible to display different categories from another Website, and display in my website. This site created by Joomla 2.5, I Hope someone understands this :)
Since your site is the Joomla one, you could either write a custom extension or more simply use the Jumi extension so you can write PHP code directly in the article or page on which you need to grab the content from the other site.
Then depending on what you know about the other site, there are different approaches. If it offers an API or RSS feed, you can use that to pull the content you need (and use PHP string functions for instance to modify it as you need). If the other site doesn't have an obvious way of offering content through a web service, try PHP curl, and again you can modify the content before displaying it. Check out this page too: How to parse actual HTML from page using CURL?
As Arunu said an iFrame could also work if you don't need to modify the other site's content.
What u wish to do can be accomplished using RSS feed or an i-frame.But from ur question
it's not clear which site is using joomla.