TYPO3 restricted user Image Adjustments - imagemagick

In TYPO3 BE I miss the Image Adjustments dialog in page element images and text with images. When I'm editing such an element, I miss this dialog which is for the admin user placed in the tab appearance. I think it's because the dialog is based on imagemagick which is disabled by default for an restricted user?!
For a restricted user it is missed.
Any idea how to configure the restricted users TSConfig to enable Image Adjustments? ;-)

You just have to give the user access to the image_effects (tt_content) field.

Sorry comment form is too short for this.
How do you mean this pgame?
According to this descr.
http://www.typo3forum.net/forum/typo3-4-x-backend/13748-bereiche-backends-fuer-bestimmte-user-ausbleden.html
i set in the user TSConfig
TCEFORM.tt_content.image_effects.disabled = 0
But like described in the last post on that page it just works for Page TSConfig, not for user TSConfig. I tried some other TSConfig's like
admPanel.override.image.settings = 1
and
admPanel.override.imageblock = 1
More or less influenced by http://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.1.0/view/1/2/ and the descr. there under the admpanel override section, where's descr. "you can have a look at the HTML code of the admin panel" but no positive results ?! Anybody an idea. The dialog image settings and its resize func. use the fields imagewidth and imageheight from tt_content. I can not found anything useful with google, this typo3 usermanagement kill my nerves )-;

Under Admin Tools->usergroup->Access Lists->Allowed excludefields you have to active the Page Content Width (pixels)(imagewidth) and Height (pixels)(imageheight).

Related

how to set navigate url to hyperlink through c#

am developing an application in which i have to show the customer purchase details supplier wise. for that i have develop user control an add it on page. but the problem it that on user control i need to add a ling to promotional offer page for that supplier which show the current offers of the supplier. for that i have added the hyperlink as fallow to user control
<asp:HyperLink ID="PromoLink" runat="server">Have promo Code ?</asp:HyperLink>
and set the navigation URL as fallow
PromoLink.NavigateUrl = "Promotion.aspx?Filter=" + dt.Rows[0]["SuppId"].ToString();
but when page is load in does not render the navigation url to the link.
i donot why it does not render the url plz help to get out of this.
thanks in advance.
Make sure that the pathing is correct for the NavigateURL property. Try adding "~/" at the start of the NavigateURL or "../" if it is not in the same folder as the current file.
Make sure that the dt.Rows[0]["SuppId"] is actually getting the value that you expect.
Step through code in the debugger to verify that the Page_Load event that you are using is actually executing and modifying the value as you would expect it to.

It is possible to change Page default in FastReport?

I have a little problem.
I've build a report with 2 pages:
Page1 shows a general items with sum.
Page2 shows a detailed of each item.
In the form I choose which kind of page I want to see.
If I want general information I choose option 1 and I saw the "Page1".
But, if I want to see detailed information I saw "Page1" along with "Page2", instead of the "page2" content only.
I tried to set page1.visible := False but If I do that I saw nothing, but If I set page2.visible := False and choose option1 then I saw the content.
Why can't I have the same result ?
It seems to me that the "Page1" is set as the default page and I can't have this page not visible.
So I'm searching to change that. If it is possible, where can I alter that ?
Thanks.
you must sure if Page2 has MasterData band.
where Fast Report Page not Appear until it has MasterData.
Where Master Data band Represent Main engine.
and Then your Code will be run page1.visible := False.

RAILS: Tracking content with /#foo in the address bar

Just like in Gmail, I want to create a div which when loaded with ajax would output a #foo in the address bar to track what content would be loaded.
If you go to https://mail.google.com/mail/?shva=1#sent gmail, if signed in, will take you straight to your sent box.
I want to do the same. For example. I have a div that loads a list of recipes. Once a recipe on the list has been clicked content gets loaded from db in the same div and the address bar would say http://site.com/#recipe-permalink. If this link gets passed to a friend and the friend goes to http://site.com/#recipe-permalink the div would load appropriate content with that recipe.
Also is there a way to control more than one div? For example if url is http://site.com/#recipe-permalink#blue app would load recipe in one div and appropriate content in another div for #blue (what ever it may be).
Is there a way to make cells or apotomo have this functionality?
Are there any SEO concerns with doing this as well? Would the crawlers be able to pick up content through #foo links?
Probably not a full answer to your question but I believe this episode of railscasts would be interesting to you.
http://railscasts.com/episodes/246-ajax-history-state

How can I remove body from a Page in OrchardCMS?

I currently have 2 page types in my Orchard CMS setup. One is for the front page, one for a detail page. On the front page, I have removed the body from being displayed, so that it just shows 2 HTML widgets.
Is there a way so that when someone edits this page, they don't get a body section?
A placement file might also do the trick: placement also works for the admin ui... That could enable you to make it show or not without requiring two different content types.
You can remove the Body Part from the page content type you use for the front page. This way people who edit this page won't see the editor for body content and the body won't be rendered at all.
HTH

Is there a way to change the browser's address bar without refreshing the page?

I'm developing a web app. In it I have a section called categories that every time a user clicks one of the categories an update panel loads the appropriate content.
After the user clicked the category I want to change the browser's address bar url from
www.mysite.com/products
to something like
www.mysite.com/products/{selectedCat}
without refreshing the page.
Is there some kind of JavaScript API I can use to achieve this?
With HTML5 you can modify the url without reloading:
If you want to make a new post in the browser's history (i.e. back button will work)
window.history.pushState('Object', 'Title', '/new-url');
If you just want to change the url without being able to go back
window.history.replaceState('Object', 'Title', '/another-new-url');
The object can be used for ajax navigation:
window.history.pushState({ id: 35 }, 'Viewing item #35', '/item/35');
window.onpopstate = function (e) {
var id = e.state.id;
load_item(id);
};
Read more here: http://www.w3.org/TR/html5-author/history.html
A fallback sollution: https://github.com/browserstate/history.js
To add to what the guys have already said edit the window.location.hash property to match the URL you want in your onclick function.
window.location.hash = 'category-name'; // address bar would become http://example.com/#category-name
I believe directly manipulating the address bar to a completely different url without moving to that url isn't allowed for security reasons, if you are happy with it being
www.mysite.com/products/#{selectedCat}
i.e. an anchor style link within the same page then look into the various history/"back button" scripts that are now present in most javascript libraries.
The mention of update panel leads me to guess you are using asp.net, in that case the asp.net ajax history control is a good place to start
I don't think this is possible (at least changing to a totally different address), as it would be an unintuitive misuse of the address bar, and could promote phishing attacks.
This cannot be done the way you're saying it. The method suggested by somej.net is the closest you can get. It's actually very common practice in the AJAX age. Even Gmail uses this.
"window.location.hash"
as suggested by sanchothefat should be the one and only way of doing it. Because all the places that I have seen this feature, it's all the time after the # in URL.

Resources