Orchard 1.7 - Add Image Upload field to Custom Form - orchardcms

I am building a Student Registration form using Orchard.CustomForms module.
I have got most of the fields working except for Student Image.
I tried using Orchard.Module.Contrib.ImageField & Orchard.Module.Contrib.MediaPickerField modules but don't see this in the list of fields.
The same goes for other attachments (pdf, word). Is there any module working with Orchard 1.7 ?

Those were not designed to upload files from the front-end. You'll have to build your own, or find another one on the gallery, if there is one.

Related

Building a custom DNN eCommerce Mega Menu and bringing back Product Categories from a separate ERP database and linking the two

I need to build an eCommerce Mega Menu which should build the menu items as normal in DNN.
I would need to bring back an Object from our own custom ERP system which contains product categories.
These categories contain Parent and Children Categories.
I can't use an existing Shopping Module as our company works differently and has developed all the other required modules for a shopping system.
I have looked at this tutorial using DDR Menu's: https://www.dnnsoftware.com/community-blog/cid/140362/advanced-menu-design-with-ddrmenu
If I download this folder on the above-mentioned website, how do I change the skin objects to use this and where do I place these files in the website root?
Here is an example of what I want to achieve:
I have also looked at a folder in the Skins folder containing code that builds the current menu:
I noticed that the ULTokens.txt file contains the structure of how a menu is built, how would I be able to add one link of our own from our ERP system in a DNN module and inject our Object with the Product Categories?
ULTokens.txt code:
The comments I made in your other post apply.
For the case where you are trying to build the menu to include data from an external store, you'll probably want to use a razor template for your menu. Then, you can include code to grab the external data to add to your menu template.
The razor version of the mega-menu template may give you some starting pointers.

Admin link/url to Media Library in Folder Path

Is it possible to generate a direct admin link to the Media Library App on a specific Gallery and Folder Path?
In the example above, I'd like to have a link to Media Library Gallery, with the Test folder selected.
I've tried setting the objectid (library id) as such http://localhost:51872/Admin/CMSAdministration.aspx?objectid=3#436564ee-89e9-4719-939a-0d7b57ece744 but doesn't seem to work.
I'm on a latest hotfix v8 site.
I don't think that it's possible, because Kentico UI has been built on WebForms and it uses UpdatePanels for ajax POST calls and all values related to the current path are held in hidden inputs. In other words you can only update basic page UI via Post requests with specific values in inputs.

Orchard 1.8.1 Containable/Container Layouts

I am using Orchard 1.8.1 and one of the sections of the site I'm building is for a standard photo gallery. Since all the modules involving photo galleries are ancient, I opted to stay native and try using custom content types to build it instead. The way I accomplished this is with a Photo Gallery content type that has the Container part associated, then a Photo Gallery Item content type that has the Containable part associated to it.
Using the Shape Tracing tool, I was able to build out the main gallery page that shows all the individual galleries, but when you go inside a single gallery is where I get lost. The attached screenshot probably shows it best, but in the Content zone, I can see there are two individual items contained under Model.ContentItem.ContainerPart.ItemCount, however I can't figure out how to access those individual items to build a template to show them. The point of the gallery page will be implementing the gallery from Galleria, so whenever I view the individual page for the Photo Gallery content type, I need to access all child items underneath it to build this.
Any ideas?
You can use a media library picker field configured for multiple media, and then edit each image to set its caption and title. Then, it's just a matter of customizing a template override in your theme to make it look exactly the way you want.

Migrating from Blogengine.net to Orchard

I have an existing blog/news site that runs on BE.net 2.6 and i would like to migrate it to Orchard. Right now i am testing the migration locally. I exported the BE.net posts as Blog ML and imported into Orchard. Two rubs - one) Orchard does not pick up the tags in BE and instead see the categories (of which there are only 3) as the tags and two) my excerpts in BE do not appear in Orchard after import. My excerpts typically have short text and an image and i want to be able to show those in the page that lists all the posts. But i do not want the image to appear in the details page. I found the fork of Blog ML that should allow tags to be brought corectly except when using that version the Blog ML options in the dashboard are not present.
You can see the live site (running BE 2.6) here http://nomorecocktails.com. I'd like the listing of posts to appear the same way with the excerpt and image in orchard. And if you can help figure out how to get the tags in too. I'd rather not have to go back through and edit the posts in orchard to ad the tags.
Thanks for any help.
I am the author of the BlogML Module. I have had a few reports of BlogEngine.net exports not going in to Orchard correctly, inparticular the Tags...
The people whole reported the initial problem did soem investigation for me and found that the Tags actually dont appear in the export file, i.e. the BlogEngine export does not export the Tags.
Could you please verify this for me? If this is not the case, please reply and I will contact you to get hold of your BlogML file and test the import locally.
The excerpts do not appear in Orchard because the BlogML module was built to only interface with the defautl implementation of the Orchard Blog module. This decision need to be changed. I think Excepts should be going in to the system, and will built it in to the module that will superseed the BlogML module. (https://orchardimportexport.codeplex.com/)
Nick

Communicate with Document Library Browser Web Part

Background
My task is to, in SharePoint, show an image of a process map which should be clickable. Think of an imagemap in html. Some areas take you to other process map images and other brings up a pop-up window.
"Connected" to each process map is a set of documents. These documents are stored in a document library. There are one process map for each folder in the document library. The documents should be shown next to the image. The person clicking either the image or a folder to navigate in the hierarchy should also be able to upload, download and delete the documents.
Question
What would be the easiest solution for this?
My thoughts
... so far is to create a custom web part which I add above the document library browser (the default one in MOSS 2007). This web part reads some xml file pointing out the image to show and the areas which is to be clickable. It listens for some kind of events from the document library, like clicks on folders in the browser or it reads the current URL to know where in the folder hierarchy we are currently, and from that show the correct process map image. When the image is clicked, the web part updates the image and tells the document library to update accordingly.
Is this feasible? Am I on the wrong track? How do I communicate with a document library?
Thanks, Martin
My thoughts are that you create a web part that displays your image map and outputs(provider) the appropriate criteria to a another web part that consumes it and displays the files in a document library.
You can achieve this by creating your own custom webpart that displays a document library based on a CAML query. Each Images sends a different CAML query to the document library webpart.
I hope this helps. Please provide information on how you solved this problem if you have already done so.
Thanks
Long since I've been here... Actually solved this one.
We created two web parts, one for process navigation and one for filtering documents in the document library.
The web part for process navigation is actually just a web part that looks for a specific query parameter in the URL and adds ".html" to it. Then looks for that document in a document library. If found then this document is shown inside an iframe. Simple!
The html documents are produced by Visio and exported to html, then uploaded to SharePoint. The links in the Visio document drives the application with queries.
The web part that shows the corresponding documents also looks for a specific query in the URL then sends filterparameters to the document library through the IfilterProvider interface. I snatched this example IFilterProvider at MSDN and made it look in the URL for parameters and then made the controls invisible to the user.
Really simple solution, though the customer needs to put in a lot of work to incorporate their company processes into it. And it is somewhat error prone and probably a sucker to make changes to data-wise.

Resources